hugo-whisper-theme/layouts/partials/sidebar.html

11 lines
351 B
HTML
Raw Normal View History

{{$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>