diff options
author | Dan Webb <dan.webb@damacus.io> | 2019-04-10 23:03:58 +0300 |
---|---|---|
committer | Dan Webb <dan.webb@damacus.io> | 2019-04-10 23:03:58 +0300 |
commit | 696e6745532d21fb3dd89bdffc8b3b770ff58a4e (patch) | |
tree | b45cbd6f8cc676fe4a3628f651f7dc88a47ba546 | |
parent | ee171928d4affddeb83d0440b9bc8f8637bebd1d (diff) |
Fix UniqueID deprecation warning
.UniqueID is deprecated and will be removed in a future release. Use .File.UniqueID.
-rw-r--r-- | layouts/partials/sidebar.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 73861a8..f9812c7 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -3,9 +3,9 @@ <h4>{{ .Section | humanize }}</h4> <ul> {{ 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> </li> {{ end }} </ul> -</div>
\ No newline at end of file +</div> |