diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 4f4cbabd7c..54e588e069 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -13,7 +13,7 @@
{{ define "menu-nextprev" }}
{{$currentNode := .currentnode }}
- {{ if ne .menu.Params.hidden true}}
+ {{ if and (ne .menu.Params.hidden true) (ne .menu.Title "") }}
{{if hasPrefix $currentNode.RelPermalink .menu.RelPermalink }}
{{ $currentNode.Scratch.Set "NextPageOK" "OK" }}
{{ $currentNode.Scratch.Set "prevPage" ($currentNode.Scratch.Get "prevPageTmp") }}
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html
index 9c56e08bdd..957dba4d06 100644
--- a/layouts/partials/menu.html
+++ b/layouts/partials/menu.html
@@ -105,7 +105,7 @@
{{ $alwaysopen := .alwaysopen }}
{{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }}
{{with .sect}}
- {{if and .IsSection (or (not .Params.hidden) $.showhidden)}}
+ {{if and .IsSection (or (and (not .Params.hidden) (ne .Title "")) $.showhidden )}}
{{safeHTML .Params.head}}
{{ $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}
@@ -113,7 +113,7 @@
{{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }}
{{ if $showvisitedlinks}}{{end}}
- {{ $numberOfPages := (add (len ( where .Pages "Params.hidden" "ne" true )) (len ( where .Sections "Params.hidden" "ne" true ))) }}
+ {{ $numberOfPages := (add (len (where (where .Pages "Params.hidden" "ne" true ) "Title" "ne" "" )) (len (where (where .Sections "Params.hidden" "ne" true ) "Title" "ne" "" )) ) }}
{{ if ne $numberOfPages 0 }}
{{ $currentNode.Scratch.Set "pages" .Pages }}
@@ -124,15 +124,15 @@
{{if eq .Site.Params.ordersectionsby "title"}}
{{ range $pages.ByTitle }}
- {{ if and .Params.hidden (not $.showhidden) }}
+ {{ if and (or (.Params.hidden) (eq .Title "")) (not $.showhidden) }}
{{else}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
{{end}}
{{ end }}
{{else}}
{{ range $pages.ByWeight }}
- {{ if and .Params.hidden (not $.showhidden) }}
- {{else}}
+ {{ if and (or (.Params.hidden) (eq .Title "")) (not $.showhidden) }}
+ {{else}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks "alwaysopen" true}}
{{end}}
{{ end }}
@@ -140,7 +140,7 @@
{{ end }}
- {{else if not .Params.Hidden }}
+ {{else if and (not .Params.hidden) (ne .Title "") }}
{{ partial "menu-pre.html" . }}{{or .Params.menuTitle .LinkTitle .Title}}{{ partial "menu-post.html" . }}
diff --git a/layouts/shortcodes/children.html b/layouts/shortcodes/children.html
index 899fce2b89..44eec093ac 100644
--- a/layouts/shortcodes/children.html
+++ b/layouts/shortcodes/children.html
@@ -38,7 +38,7 @@
{{ define "childs" }}
{{ range .menu }}
- {{ if and .Params.hidden (not $.showhidden) }}
+ {{ if and (or (.Params.hidden) (eq .Title "")) (not $.showhidden) }}
{{else}}
{{if not .IsHome}}
{{if hasPrefix $.style "h"}}