mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
parent
1b7acfe763
commit
aa3e183056
3 changed files with 13 additions and 3 deletions
|
@ -561,6 +561,6 @@ categories: ["funny"]
|
|||
b.Assert(funny.Parent(), qt.Equals, cat)
|
||||
|
||||
b.AssertFileContent("public/categories/funny/index.xml", `<link>http://example.com/p/</link>`)
|
||||
// TODO https://github.com/gohugoio/hugo/issues/6909 b.AssertFileContent("public/categories/index.xml", `<link>http://example.com/categories/funny/</link>`)
|
||||
b.AssertFileContent("public/categories/index.xml", `<link>http://example.com/categories/funny/</link>`)
|
||||
|
||||
}
|
||||
|
|
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 -}}
|
||||
|
|
Loading…
Reference in a new issue