2022-01-26 14:49:48 +01:00
|
|
|
<!-- Auto default section menu -->
|
2022-01-26 14:36:47 +01:00
|
|
|
{{ $currentPage := . -}}
|
2022-01-28 13:52:51 +01:00
|
|
|
{{ $section := $currentPage.Section -}}
|
|
|
|
{{ range (where .Site.Sections "Section" "in" $section) }}
|
2022-06-23 04:26:16 +02:00
|
|
|
{{ range .Sections }}
|
2022-01-26 14:36:47 +01:00
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
|
|
|
<h3 class="h6 text-uppercase mb-2">{{ .Title }}</h3>
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ if .IsNode }}
|
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
|
|
|
<h4 class="h6 text-uppercase ms-3 mt-3 mb-2">{{ .Title }}</h4>
|
|
|
|
<ul class="list-unstyled ms-3">
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ if .IsNode }}
|
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
|
|
|
<h5 class="h6 text-uppercase mt-2 mb-2">{{ .Title }}</h5>
|
|
|
|
<ul class="list-unstyled ms-3">
|
|
|
|
{{ range .Pages }}
|
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
2022-03-21 00:50:32 +01:00
|
|
|
<li><a class="docs-link{{ if $active }} active{{ end }}" href="{{ .Permalink }}">{{ .Name }}</a></li>
|
2022-01-26 14:36:47 +01:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ else }}
|
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
2022-03-21 00:50:32 +01:00
|
|
|
<li><a class="docs-link{{ if $active }} active{{ end }}" href="{{ .Permalink }}">{{ .Name }}</a></li>
|
2022-01-26 14:36:47 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ else }}
|
|
|
|
{{ $active := in $currentPage.RelPermalink .RelPermalink }}
|
2022-03-21 00:50:32 +01:00
|
|
|
<li><a class="docs-link{{ if $active }} active{{ end }}" href="{{ .Permalink }}">{{ .Name }}</a></li>
|
2022-01-26 14:36:47 +01:00
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
|
|
|
{{ end }}
|
2022-03-21 00:50:32 +01:00
|
|
|
{{ end }}
|