home page filter pages use "Section in" instead of "Type in"

distinguish .Section and .Type
This commit is contained in:
Reorx 2022-09-07 13:53:15 +08:00
parent 62288bcb56
commit a016d83663
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@
{{- $pages := .Pages }}
{{- if .IsHome }}
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
{{- $pages = where site.RegularPages "Section" "in" site.Params.mainSections }}
{{- end }}
{{- $pages = where $pages "Params.hidden" "!=" true }}