Add author config
This commit is contained in:
parent
ebdb4a3278
commit
4c26214246
|
@ -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>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue