Skip to content
Permalink
Browse files

tpl: Use RegularPages for RSS template

This is in line with how it was in Hugo 0.56.

See #6238
  • Loading branch information...
bep committed Aug 17, 2019
1 parent ea68160 commit 88d69936122f82fffc02850516bdb37be3d0892b
Showing with 6 additions and 4 deletions.
  1. +3 −2 tpl/tplimpl/embedded/templates.autogen.go
  2. +3 −2 tpl/tplimpl/embedded/templates/_default/rss.xml

Some generated files are not rendered by default. Learn more.

@@ -1,5 +1,6 @@
{{- $pages := "" -}}
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- else -}}{{- $pages = .Pages -}}{{- end -}}
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := $pctx.RegularPages -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}

0 comments on commit 88d6993

Please sign in to comment.
You can’t perform that action at this time.