feat: add auto new docs tree

This commit is contained in:
Henk Verlinde
2022-01-28 13:52:51 +01:00
parent 4b3e21abb5
commit f7bb574a9b
21 changed files with 174 additions and 23 deletions

View File

@ -1,7 +1,8 @@
<!-- Auto collapsible section menu -->
<ul class="list-unstyled collapsible-sidebar">
{{ $currentPage := . -}}
{{ range (where .Site.Sections "Section" "in" site.Params.menu.section.mainSections) }}
{{ $section := $currentPage.Section -}}
{{ range (where .Site.Sections "Section" "in" $section) }}
{{ range .Sections.Reverse }}
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
<li class="mb-1">