diff --git a/assets/styles/components/nav-docs.scss b/assets/styles/components/nav-docs.scss index f8d2e64..3a274f6 100644 --- a/assets/styles/components/nav-docs.scss +++ b/assets/styles/components/nav-docs.scss @@ -21,7 +21,7 @@ padding: 1em 0; .menu { margin-top: 1em; - > li { + > li, > details { margin-bottom: 1em; > a { display: block; diff --git a/layouts/partials/nav-docs.html b/layouts/partials/nav-docs.html index 817f525..4649903 100644 --- a/layouts/partials/nav-docs.html +++ b/layouts/partials/nav-docs.html @@ -10,10 +10,12 @@ {{ $currentPage := . }} {{ range .Site.Menus.docs }} {{ $active := or ($currentPage.IsMenuCurrent "docs" .) (eq $currentPage.Section .Identifier)}} -
+
{{ if .HasChildren }} - + + {{ .Pre }}{{ .Name }}{{ .Post }} +