aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar cel 🌸 <cel@bunny.garden>2025-04-02 03:38:44 +0100
committerLibravatar cel 🌸 <cel@bunny.garden>2025-04-02 03:38:44 +0100
commit13949ed0d4006421934a9e2e6f91b3ec21222e25 (patch)
tree496636d2321b64d920c7d72c72e0d02170489154
parentbb00d178d77ee6ca604cd4c6ed2c4e3ba81aab64 (diff)
downloadblossom-13949ed0d4006421934a9e2e6f91b3ec21222e25.tar.gz
blossom-13949ed0d4006421934a9e2e6f91b3ec21222e25.tar.bz2
blossom-13949ed0d4006421934a9e2e6f91b3ec21222e25.zip
fix feed urls
-rw-r--r--src/atom.rs2
-rw-r--r--src/main.rs4
-rw-r--r--src/posts.rs2
3 files changed, 4 insertions, 4 deletions
diff --git a/src/atom.rs b/src/atom.rs
index 11ae01d..ef98ce4 100644
--- a/src/atom.rs
+++ b/src/atom.rs
@@ -96,7 +96,7 @@ pub async fn atom<P: AsRef<dyn Post + Send + Sync>>(ctx: Context, entries: Vec<P
logo: Some("/logo.png".into()),
entries: Vec::new(),
// TODO: determine base url from lang
- base: Some("https://en.blos.sm/".into()),
+ base: Some("https://blos.sm/".into()),
lang: Some(ctx.lang),
..Default::default()
};
diff --git a/src/main.rs b/src/main.rs
index ebc480e..7253a16 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -139,8 +139,8 @@ async fn feed() -> Result<Response> {
// TODO: i18n
let context = atom::Context {
page_title: "celeste's hard drive".to_owned(),
- page_url: "https://en.blos.sm".to_owned(),
- self_url: "https://en.blos.sm/feed".to_owned(),
+ page_url: "https://blos.sm".to_owned(),
+ self_url: "https://blos.sm/feed".to_owned(),
lang: "en".to_owned(),
};
let feed = atom::atom(context, posts).await;
diff --git a/src/posts.rs b/src/posts.rs
index 93c9179..e16b64f 100644
--- a/src/posts.rs
+++ b/src/posts.rs
@@ -20,7 +20,7 @@ pub trait Post {
fn content(&self) -> &str;
fn link(&self) -> String {
- "https://en.blos.sm/posts/".to_owned() + self.id()
+ "https://blos.sm/posts/".to_owned() + self.id()
}
fn get_tags<'a>(posts: &'a Vec<Self>) -> Vec<&'a str>