make rss page query the same as list.html
This commit is contained in:
parent
338bc70774
commit
1efab6714a
|
@ -2,7 +2,7 @@
|
|||
{{- if .IsHome -}}{{ $pctx = site }}{{- end -}}
|
||||
{{- $pages := slice -}}
|
||||
{{- if or $.IsHome $.IsSection -}}
|
||||
{{- $pages = $pctx.RegularPages -}}
|
||||
{{- $pages = where $pctx.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- else -}}
|
||||
{{- $pages = $pctx.Pages -}}
|
||||
{{- end -}}
|
||||
|
|
Loading…
Reference in New Issue