mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-23 21:53:09 +02:00
7
tpl/tplimpl/embedded/templates.autogen.go
generated
7
tpl/tplimpl/embedded/templates.autogen.go
generated
@@ -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 -}}
|
||||
|
@@ -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 -}}
|
||||
|
Reference in New Issue
Block a user