2022-10-13 10:49:41 +00:00
|
|
|
<nav class="docs-nav">
|
2022-10-11 09:54:07 +00:00
|
|
|
<div class="container">
|
|
|
|
<input type="checkbox" class="toggle-menu" name="toggle" id="toggle">
|
2022-10-13 10:49:41 +00:00
|
|
|
<label class="toggle-menu__label" for="toggle"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"
|
|
|
|
fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
|
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M4 6h16M4 12h16M4 18h7" />
|
2022-10-14 08:36:35 +00:00
|
|
|
</svg> Documentation Menu</label>
|
2022-10-11 09:54:07 +00:00
|
|
|
<ul class="menu">
|
|
|
|
<a id="menu" href="#top">Skip menu</a>
|
2022-12-12 01:46:24 +00:00
|
|
|
{{ $currentPage := .Page }}
|
2022-10-11 09:54:07 +00:00
|
|
|
{{ range .Site.Menus.docs }}
|
2022-12-12 01:46:24 +00:00
|
|
|
{{ $active := hasPrefix $currentPage.RelPermalink .Page.RelPermalink }}
|
2022-12-12 00:55:00 +00:00
|
|
|
<details {{- if $active }} open{{ end -}}>
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ if .HasChildren }}
|
2022-12-12 00:55:00 +00:00
|
|
|
<summary class='section-title{{- if $active }} active{{ end -}}'>
|
|
|
|
<a>
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ .Pre }}<span>{{ .Name }}</span>{{ .Post }}
|
2022-12-12 00:55:00 +00:00
|
|
|
</a>
|
2022-12-12 00:48:40 +00:00
|
|
|
</summary>
|
|
|
|
<ul class="sub-menu" data-depth=1>
|
2022-10-13 10:49:41 +00:00
|
|
|
{{ range .Children }}
|
2022-12-12 01:46:24 +00:00
|
|
|
{{ $active := hasPrefix $currentPage.RelPermalink .Page.RelPermalink }}
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ if .HasChildren}}
|
2022-12-12 01:46:24 +00:00
|
|
|
<li class='{{- if $active }}active{{ end -}}'>
|
2022-12-12 00:48:40 +00:00
|
|
|
<a href="{{ .URL | relLangURL }}">
|
|
|
|
{{ .Pre }}<span>{{ .Name }}</span>{{ .Post }}
|
|
|
|
</a>
|
|
|
|
<ul class="sub-menu" data-depth=2>
|
2022-12-12 00:29:48 +00:00
|
|
|
{{ range .Children }}
|
2022-12-12 01:46:24 +00:00
|
|
|
{{ $active := hasPrefix $currentPage.RelPermalink .Page.RelPermalink }}
|
|
|
|
<li class='{{- if $active }}active{{ end -}}'>
|
2022-12-12 00:29:48 +00:00
|
|
|
<a href="{{ .URL | relLangURL }}">
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ .Pre }}<span>{{ .Name }}</span>{{ .Post }}
|
2022-12-12 00:29:48 +00:00
|
|
|
</a>
|
2022-12-12 00:48:40 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}{{/* range .Children (subsubmenu) */}}
|
|
|
|
</ul>
|
|
|
|
{{ else }}{{/* not .HasChildren (subsubmenu) */}}
|
2022-12-12 01:46:24 +00:00
|
|
|
<li class='{{- if $active }}active{{ end -}}'>
|
2022-12-12 00:48:40 +00:00
|
|
|
<a href="{{ .URL | relLangURL }}">
|
|
|
|
{{ .Pre }}<span>{{ .Name }}</span>{{ .Post }}
|
|
|
|
</a>
|
2022-12-12 00:29:48 +00:00
|
|
|
</li>
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ end }}{{/* range .Children */}}
|
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2022-10-13 10:49:41 +00:00
|
|
|
{{ else }}
|
2022-12-12 01:46:24 +00:00
|
|
|
<li class='{{- if $active }}active{{ end -}}'>
|
2022-10-16 22:15:34 +00:00
|
|
|
<a href="{{ .URL | relLangURL }}">
|
2022-12-12 00:48:40 +00:00
|
|
|
{{ .Pre }}<span>{{ .Name }}</span>{{ .Post }}
|
2022-10-13 10:49:41 +00:00
|
|
|
</a>
|
2022-10-11 09:54:07 +00:00
|
|
|
</li>
|
|
|
|
{{ end }}
|
2022-12-12 00:48:40 +00:00
|
|
|
</details>
|
2022-12-12 00:29:48 +00:00
|
|
|
{{ end }}
|
|
|
|
</ul>
|
2022-10-11 09:54:07 +00:00
|
|
|
</div>
|
|
|
|
</nav>
|