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