Add author config

This commit is contained in:
viridian 2024-05-02 16:20:08 +02:00
parent ebdb4a3278
commit 4c26214246
Signed by: viridian
GPG key ID: DCD4DF95CE23FE8C
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ pub struct Syndication {
pub blog_root: String, pub blog_root: String,
pub icon: Option<String>, pub icon: Option<String>,
pub subtitle: Option<String>, pub subtitle: Option<String>,
pub author: String,
pub atom: Option<AtomConfig>, pub atom: Option<AtomConfig>,
} }

View file

@ -22,7 +22,7 @@ pub fn generate(
let mut author = XMLElement::new("author"); let mut author = XMLElement::new("author");
let mut name = XMLElement::new("name"); let mut name = XMLElement::new("name");
name.add_text("kibty".to_string()).unwrap(); name.add_text(config.author).unwrap();
author.add_child(name).unwrap(); author.add_child(name).unwrap();
feed.add_child(author).unwrap(); feed.add_child(author).unwrap();