diff --git a/layouts/partials/docs-nav.html b/layouts/partials/docs-nav.html index 11037fac5..cedc6e3e0 100644 --- a/layouts/partials/docs-nav.html +++ b/layouts/partials/docs-nav.html @@ -6,26 +6,49 @@ {{ $isActive := eq $page . -}} {{ $isActivePath := $page.IsDescendant . -}} {{ $childPages := (union .Pages .Sections).ByWeight -}} -
  • - +
  • + {{ if gt (len $childPages) 0 }} {{ if or $isActive $isActivePath -}} - + {{ else -}} - + {{ end -}} {{ end -}} - {{.LinkTitle}} + {{.LinkTitle}}
  • - {{ if and (gt (len $childPages) 0) (or $isActive $isActivePath)}} -