more RSS
This commit is contained in:
parent
ea06b26c9f
commit
0a4106be9c
|
@ -37,6 +37,9 @@ type RSSChannel struct {
|
||||||
Link string `xml:"link"`
|
Link string `xml:"link"`
|
||||||
AtomLinks []AtomLink `xml:"atom:link"`
|
AtomLinks []AtomLink `xml:"atom:link"`
|
||||||
Description RSSDescription `xml:"description"`
|
Description RSSDescription `xml:"description"`
|
||||||
|
PubDate string `xml:"pubDate"`
|
||||||
|
LastBuild string `xml:"lastBuildDate"`
|
||||||
|
Generator string `xml:"generator"`
|
||||||
Items []RSSItem `xml:"item"`
|
Items []RSSItem `xml:"item"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,7 +69,10 @@ func RenderRSSFeed(config model.SiteConfig, entries []model.Entry) (string, erro
|
||||||
Description: RSSDescription{
|
Description: RSSDescription{
|
||||||
Text: config.SubTitle,
|
Text: config.SubTitle,
|
||||||
},
|
},
|
||||||
Items: make([]RSSItem, 0),
|
PubDate: time.Now().Format(time.RFC1123Z),
|
||||||
|
LastBuild: time.Now().Format(time.RFC1123Z),
|
||||||
|
Generator: "owl-blogs",
|
||||||
|
Items: make([]RSSItem, 0),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue