This commit is contained in:
parent
7dcff0b810
commit
7d19eb645f
1 changed files with 10 additions and 0 deletions
|
@ -297,6 +297,16 @@ fn build_rss(config: Config, info: ConnectionInfo) -> String {
|
||||||
title: Some(p.title.to_owned()),
|
title: Some(p.title.to_owned()),
|
||||||
link: Some(format!("{}/blog/p/{}", link_to_site, p.url)),
|
link: Some(format!("{}/blog/p/{}", link_to_site, p.url)),
|
||||||
description: p.content.to_owned(),
|
description: p.content.to_owned(),
|
||||||
|
categories: match &p.tags {
|
||||||
|
Some(tags) => tags
|
||||||
|
.iter()
|
||||||
|
.map(|c| Category {
|
||||||
|
name: c.into(),
|
||||||
|
..Category::default()
|
||||||
|
})
|
||||||
|
.collect(),
|
||||||
|
None => vec![],
|
||||||
|
},
|
||||||
guid: Some(Guid {
|
guid: Some(Guid {
|
||||||
value: format!("urn:hash:{}", {
|
value: format!("urn:hash:{}", {
|
||||||
let mut hasher = DefaultHasher::new();
|
let mut hasher = DefaultHasher::new();
|
||||||
|
|
Loading…
Reference in a new issue