use mainSections, update Permalinks and asset URLS

This commit is contained in:
Robert Austin 2019-03-14 10:56:09 +10:00
parent eba613e044
commit d87fbd97cc
17 changed files with 59 additions and 50 deletions

View file

@ -0,0 +1,11 @@
{{$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>