diff --git a/layouts/partials/default.html b/layouts/partials/default.html index f3c60468..9553ca10 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -8,7 +8,7 @@ {{range .Site.Home.Sections.ByWeight}} {{ $numberOfMainPages := len .Pages }} - {{ if eq $numberOfMainPages 0 }} + {{ if eq $numberOfMainPages -1 }} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}} diff --git a/themes/godocs-1/layouts/partials/default.html b/themes/godocs-1/layouts/partials/default.html index f3c60468..9553ca10 100644 --- a/themes/godocs-1/layouts/partials/default.html +++ b/themes/godocs-1/layouts/partials/default.html @@ -8,7 +8,7 @@ {{range .Site.Home.Sections.ByWeight}} {{ $numberOfMainPages := len .Pages }} - {{ if eq $numberOfMainPages 0 }} + {{ if eq $numberOfMainPages -1 }} {{ else }} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}