From 73d11f00b80c50f73e3160786779c2ed33c028a6 Mon Sep 17 00:00:00 2001 From: a Date: Sun, 11 Dec 2022 18:48:40 -0600 Subject: [PATCH] fix docs menu depth collapsing --- layouts/partials/nav-docs.html | 77 +++++++++++++--------------------- 1 file changed, 29 insertions(+), 48 deletions(-) diff --git a/layouts/partials/nav-docs.html b/layouts/partials/nav-docs.html index 764a27f..817f525 100644 --- a/layouts/partials/nav-docs.html +++ b/layouts/partials/nav-docs.html @@ -9,64 +9,45 @@ Skip menu {{ $currentPage := . }} {{ range .Site.Menus.docs }} - {{ $active := or ($currentPage.IsMenuCurrent "docs" .) (eq $currentPage.Section .Identifier)}} - {{ if .HasChildren }} -
- - {{ .Pre }} - {{ .Name }} - {{ .Post }} - - {{ else }} -
  • +
  • - {{ .Pre }} - {{ .Name }} - {{ .Post }} + {{ .Pre }}{{ .Name }}{{ .Post }}
  • {{ end }} - {{ end }} - - - {{ else }} -
  • - - {{ .Pre }} - {{ .Name }} - {{ .Post }} - -
  • - {{ end }} +
    {{ end }}