diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 6ab2cde..e2c248c 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -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 := "" }}