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 -}}
|
{{- 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 -}}
|
||||||
|
|
Loading…
Reference in New Issue