Fix UniqueID deprecation warning

.UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID.
This commit is contained in:
Dan Webb 2019-04-10 21:03:58 +01:00
parent ee171928d4
commit 696e674553

View file

@ -3,9 +3,9 @@
<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) sort .Site.RegularPages ".Weight" }}
<li class="{{ if eq .UniqueID $currentNode.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>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>