diff options
author | tummychow <tummychow@users.noreply.github.com> | 2019-12-01 03:42:50 +0300 |
---|---|---|
committer | tummychow <tummychow@users.noreply.github.com> | 2019-12-01 03:42:50 +0300 |
commit | 426be8a275041df6391af5d8b2d405076a0d24d4 (patch) | |
tree | 7f73dd6a5b126059ccf51262c8e09bbe609c9316 | |
parent | 032e7aef5dd9f701a6fea4f13ad8351c862e9931 (diff) |
use RegularPages in rss feed
i must have missed this while fixing things for 0.57.1
-rw-r--r-- | layouts/rss.xml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml index 35f1d80..2c82bad 100644 --- a/layouts/rss.xml +++ b/layouts/rss.xml @@ -7,17 +7,15 @@ <rights>(C) {{ .Site.LastChange.Year }}</rights> <updated>{{ .Date }}</updated> - {{ range .Data.Pages }} - {{ if eq .Type "post"}} - <item> - <title>{{ .Title }}</title> - <link>{{ .Permalink }}</link> - <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate> - <author>{{ .Site.Params.Author }}</author> - <guid>{{ .Permalink }}</guid> - <description>{{ .Content | html }}</description> - </item> - {{ end }} + {{ range where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }}</pubDate> + <author>{{ .Site.Params.Author }}</author> + <guid>{{ .Permalink }}</guid> + <description>{{ .Content | html }}</description> + </item> {{ end }} </channel> |