fix title of rss feed

This commit is contained in:
Mylloon 2023-04-26 16:32:57 +02:00
parent ee9c5fbdd1
commit 5400166c2e
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -201,8 +201,9 @@ fn build_rss(config: Config, info: ConnectionInfo) -> String {
} else {
None
};
let title = "Blog d'Anri";
let channel = Channel {
title: "Blog d'Anri".into(),
title: title.to_owned(),
link: link_to_site.to_owned(),
description: "Un fil qui parle d'informatique notamment".into(),
language: Some("fr".into()),
@ -220,6 +221,7 @@ fn build_rss(config: Config, info: ConnectionInfo) -> String {
docs: Some("https://www.rssboard.org/rss-specification".into()),
image: Some(Image {
url: format!("{}/icons/favicon-32x32.png", link_to_site),
title: title.to_owned(),
link: link_to_site.to_owned(),
..Image::default()
}),