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