fix hidden is shown in list.html (section page)
This commit is contained in:
parent
8bbb2ac5b5
commit
3bc70e9a2c
|
@ -26,10 +26,10 @@
|
|||
|
||||
|
||||
{{- $pages := .Pages }}
|
||||
|
||||
{{- if .IsHome }}
|
||||
{{- $pages = where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||
{{- end }}
|
||||
{{- $pages = where $pages "Params.hidden" "!=" true }}
|
||||
|
||||
{{/* related issue: https://github.com/gohugoio/hugo/issues/9003 */}}
|
||||
{{ $paginator := "" }}
|
||||
|
|
Loading…
Reference in New Issue