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

12 lines
326 B
HTML
Raw Permalink Normal View History

{{$currentNode := .}}
<div class="docs-menu">
<h4>{{ .Section | humanize }}</h4>
<ul>
2020-06-02 23:56:14 +00:00
{{ range where .Site.RegularPages "Section" .Section }}
<li class="{{ if eq .File.UniqueID $currentNode.File.UniqueID }}active {{ end }}">
<a href="{{ .Permalink }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>