diff options
Diffstat (limited to 'tpl/tplimpl/embedded/templates.autogen.go')
-rw-r--r-- | tpl/tplimpl/embedded/templates.autogen.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go index 93713f00c..a38ab29fa 100644 --- a/tpl/tplimpl/embedded/templates.autogen.go +++ b/tpl/tplimpl/embedded/templates.autogen.go @@ -19,8 +19,8 @@ package embedded // EmbeddedTemplates represents all embedded templates. var EmbeddedTemplates = [][2]string{ {`_default/robots.txt`, `User-agent: *`}, - {`_default/rss.xml`, `{{- $pages := .Pages -}} -{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- end -}} + {`_default/rss.xml`, `{{- $pages := "" -}} +{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- else -}}{{- $pages = .Pages -}}{{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}} {{- $pages = $pages | first $limit -}} |