also remove notes from rss feed
This commit is contained in:
parent
bd3d7bfe23
commit
4e1c3b42c4
|
@ -234,7 +234,7 @@ func renderRSS(targetPath string, tpl *template.Template, posts Posts, _ []*Stat
|
||||||
defer rssFile.Close()
|
defer rssFile.Close()
|
||||||
|
|
||||||
var xmlPosts []*XMLPost
|
var xmlPosts []*XMLPost
|
||||||
for _, p := range posts.Limit(10) {
|
for _, p := range posts.RemoveKind(KIND_NOTE).Limit(10) {
|
||||||
xmlPosts = append(xmlPosts, p.XMLPost())
|
xmlPosts = append(xmlPosts, p.XMLPost())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue