diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 72d9460..0e3e0d2 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -5,6 +5,7 @@
{{ $parent := . }} {{ $valid_pages := where .Site.Pages.ByTitle ".Parent" "!=" nil }} + {{ $valid_pages := where $valid_pages ".Params.hide_in_list" "!=" "true" }} {{ range where $valid_pages ".Parent.UniqueID" $parent.UniqueID }} {{ if $parent.Params.show_images }} {{ partial "box_image.html" . }} diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 135d41c..96fdae3 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -7,6 +7,7 @@ {{ if eq .Parent $home }} {{ $valid_children := where .Site.Pages.ByTitle ".Parent" "!=" nil }} {{ $children := where $valid_children ".Parent.UniqueID" .UniqueID }} + {{ $children := where $children ".Params.hide_in_nav" "!=" "true" }}
  • {{ .LinkTitle }} {{ if $children }}