mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-21 10:38:31 +00:00
parent
4b4bdcfe74
commit
564cf1bb11
2 changed files with 4 additions and 4 deletions
tpl/tplimpl/embedded
4
tpl/tplimpl/embedded/templates.autogen.go
generated
4
tpl/tplimpl/embedded/templates.autogen.go
generated
|
@ -19,8 +19,8 @@ package embedded
|
||||||
// EmbeddedTemplates represents all embedded templates.
|
// EmbeddedTemplates represents all embedded templates.
|
||||||
var EmbeddedTemplates = [][2]string{
|
var EmbeddedTemplates = [][2]string{
|
||||||
{`_default/robots.txt`, `User-agent: *`},
|
{`_default/robots.txt`, `User-agent: *`},
|
||||||
{`_default/rss.xml`, `{{- $pages := .Pages -}}
|
{`_default/rss.xml`, `{{- $pages := "" -}}
|
||||||
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- end -}}
|
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- else -}}{{- $pages = .Pages -}}{{- end -}}
|
||||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||||
{{- if ge $limit 1 -}}
|
{{- if ge $limit 1 -}}
|
||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{{- $pages := .Pages -}}
|
{{- $pages := "" -}}
|
||||||
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- end -}}
|
{{- if .IsHome -}}{{- $pages = .Site.RegularPages -}}{{- else -}}{{- $pages = .Pages -}}{{- end -}}
|
||||||
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
{{- $limit := .Site.Config.Services.RSS.Limit -}}
|
||||||
{{- if ge $limit 1 -}}
|
{{- if ge $limit 1 -}}
|
||||||
{{- $pages = $pages | first $limit -}}
|
{{- $pages = $pages | first $limit -}}
|
||||||
|
|
Loading…
Add table
Reference in a new issue