From a469f91af5a0c00ef48210632ce41131603bccab Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 14 Jul 2020 22:27:35 -0400 Subject: [PATCH] atom feed: fixes --- src/app.rs | 1 + src/post/mod.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 2e8c449..50af7f2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -81,6 +81,7 @@ pub fn init(cfg: PathBuf) -> Result { ) .feed_url("https://christine.website/blog.json") .user_comment("This is a JSON feed of my blogposts. For more information read: https://jsonfeed.org/version/1") + .home_page_url("https://christine.website") .icon(ICON) .favicon(ICON); diff --git a/src/post/mod.rs b/src/post/mod.rs index b0bb3a6..dbad39c 100644 --- a/src/post/mod.rs +++ b/src/post/mod.rs @@ -58,7 +58,7 @@ impl Into for Post { let mut content = atom::ContentBuilder::default(); content.src(format!("https://christine.website/{}", self.link)); - content.content_type(Some("html".into())); + content.content_type(Some("text/html;charset=utf-8".into())); content.value(Some(xml::escape::escape_str_pcdata(&self.body_html).into())); let content = content.build().unwrap();