also remove notes from rss feed

This commit is contained in:
Erik Winter 2020-12-31 08:46:23 +01:00
parent bd3d7bfe23
commit 4e1c3b42c4
1 changed files with 1 additions and 1 deletions

View File

@ -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())
} }