summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/embedded/templates.autogen.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-18 16:55:30 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-18 16:55:30 +0100
commitaa3e1830568cabaa8bf3277feeba6cb48746e40c (patch)
tree7b769afc62bdec695a6999746d4d9e71db251f86 /tpl/tplimpl/embedded/templates.autogen.go
parent1b7acfe7634a5d7bbc597ef4dddf4babce5666c5 (diff)
tpl: Fix RSS template for the terms listing
Fixes #6909
Diffstat (limited to 'tpl/tplimpl/embedded/templates.autogen.go')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index f64f18ee1..c9dec8988 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -21,7 +21,12 @@ var EmbeddedTemplates = [][2]string{
{`_default/robots.txt`, `User-agent: *`},
{`_default/rss.xml`, `{{- $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 -}}