mirror of
https://github.com/TeamPiped/hugo-whisper-theme.git
synced 2024-08-14 23:57:00 +00:00
11 lines
351 B
HTML
11 lines
351 B
HTML
|
{{$currentNode := .}}
|
||
|
<div class="docs-menu">
|
||
|
<h4>{{ .Section | humanize }}</h4>
|
||
|
<ul>
|
||
|
{{ range (where .Site.RegularPages "Section" .Section) sort .Site.RegularPages ".Weight" }}
|
||
|
<li class="{{ if eq .UniqueID $currentNode.UniqueID }}active {{ end }}">
|
||
|
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</div>
|