aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/_default/rss.xml
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/rss.xml')
-rw-r--r--layouts/_default/rss.xml11
1 files changed, 4 insertions, 7 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index 37ab6ea..e480a4b 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -34,14 +34,11 @@
{{- if .IsHome }}{{ $pctx = .Site }}{{ end }}
{{- $pages := slice }}
{{- if or $.IsHome $.IsSection }}
-{{- $pages = $pctx.RegularPages }}
+{{- $pages = where $pctx.RegularPages "Type" "in" (slice "posts" "post") }}
{{- else }}
-{{- $pages = $pctx.Pages }}
-{{- end }}
-{{- $limit := .Site.Params.RSS.pageLimit }}
-{{- if ge $limit 1 }}
-{{- $pages = $pages | first $limit }}
+{{- $pages = where $pctx.Pages "Type" "in" (slice "posts" "post") }}
{{- end }}
+
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
@@ -82,4 +79,4 @@
</item>
{{- end }}
</channel>
-</rss> \ No newline at end of file
+</rss>