home page filter pages use "Section in" instead of "Type in"
distinguish .Section and .Type
This commit is contained in:
parent
62288bcb56
commit
a016d83663
|
@ -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 }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue