diff options
Diffstat (limited to 'tpl/tplimpl/embedded/templates/_default/rss.xml')
-rw-r--r-- | tpl/tplimpl/embedded/templates/_default/rss.xml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates/_default/rss.xml b/tpl/tplimpl/embedded/templates/_default/rss.xml index 3e17f48c6..5ec2025b6 100644 --- a/tpl/tplimpl/embedded/templates/_default/rss.xml +++ b/tpl/tplimpl/embedded/templates/_default/rss.xml @@ -1,6 +1,11 @@ {{- $pctx := . -}} {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} -{{- $pages := $pctx.RegularPages -}} +{{- $pages := slice -}} +{{- if eq $.Kind "taxonomyTerm" -}} +{{- $pages = $pctx.Pages -}} +{{- else -}} +{{- $pages = $pctx.RegularPages -}} +{{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} |