2020-04-15 15:48:16 +02:00
|
|
|
{{ $currentPage := . -}}
|
|
|
|
{{ range .Site.Menus.docs -}}
|
|
|
|
<h3>{{ .Name }}</h3>
|
|
|
|
{{ if .HasChildren -}}
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{{ range .Children -}}
|
|
|
|
{{- $active := or ($currentPage.IsMenuCurrent "docs" .) ($currentPage.HasMenuCurrent "docs" .) -}}
|
2021-02-12 09:19:50 +01:00
|
|
|
{{- $active = or $active (eq $currentPage.Section .Identifier) -}}
|
2020-11-04 08:26:58 +01:00
|
|
|
<li><a class="docs-link{{ if $active }} active{{ end }}" href="{{ .URL | absURL }}">{{ .Name }}</a></li>
|
2020-04-15 15:48:16 +02:00
|
|
|
{{ end -}}
|
|
|
|
</ul>
|
|
|
|
{{ end -}}
|
|
|
|
{{ end -}}
|