fix bug in sidebar

This commit is contained in:
Robert Austin 2020-06-03 09:56:14 +10:00
parent 4ae9fd23bb
commit 871c793863

View file

@ -2,7 +2,7 @@
<div class="docs-menu"> <div class="docs-menu">
<h4>{{ .Section | humanize }}</h4> <h4>{{ .Section | humanize }}</h4>
<ul> <ul>
{{ range (where .Site.RegularPages "Section" .Section) sort .Site.RegularPages ".Weight" }} {{ range where .Site.RegularPages "Section" .Section }}
<li class="{{ if eq .File.UniqueID $currentNode.File.UniqueID }}active {{ end }}"> <li class="{{ if eq .File.UniqueID $currentNode.File.UniqueID }}active {{ end }}">
<a href="{{ .Permalink }}">{{ .Title }}</a> <a href="{{ .Permalink }}">{{ .Title }}</a>
</li> </li>