make rss page query the same as list.html

This commit is contained in:
Reorx 2022-05-31 00:43:13 +08:00
parent 338bc70774
commit 1efab6714a
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
{{- if .IsHome -}}{{ $pctx = site }}{{- end -}} {{- if .IsHome -}}{{ $pctx = site }}{{- end -}}
{{- $pages := slice -}} {{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}} {{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}} {{- $pages = where $pctx.RegularPages "Type" "in" site.Params.mainSections }}
{{- else -}} {{- else -}}
{{- $pages = $pctx.Pages -}} {{- $pages = $pctx.Pages -}}
{{- end -}} {{- end -}}