Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-18 19:29:46 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2020-02-18 19:29:46 +0300
commitd73e37387ca0012bd58bd3f36a0477854b41ab6e (patch)
tree11d7cc50f7bfb7ee849bb7e3cdf58b6e51c2b9e4 /tpl
parentaa3e1830568cabaa8bf3277feeba6cb48746e40c (diff)
tpl: Adjust the RSS taxonomy logic
See #6909
Diffstat (limited to 'tpl')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go6
-rw-r--r--tpl/tplimpl/embedded/templates/_default/rss.xml6
2 files changed, 6 insertions, 6 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index c9dec8988..821354c99 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -22,10 +22,10 @@ var EmbeddedTemplates = [][2]string{
{`_default/rss.xml`, `{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
-{{- if eq $.Kind "taxonomyTerm" -}}
-{{- $pages = $pctx.Pages -}}
-{{- else -}}
+{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
+{{- else -}}
+{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
diff --git a/tpl/tplimpl/embedded/templates/_default/rss.xml b/tpl/tplimpl/embedded/templates/_default/rss.xml
index 5ec2025b6..8bdf02ad7 100644
--- a/tpl/tplimpl/embedded/templates/_default/rss.xml
+++ b/tpl/tplimpl/embedded/templates/_default/rss.xml
@@ -1,10 +1,10 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
-{{- if eq $.Kind "taxonomyTerm" -}}
-{{- $pages = $pctx.Pages -}}
-{{- else -}}
+{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
+{{- else -}}
+{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}