Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/JugglerX/hugo-whisper-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Webb <dan.webb@damacus.io>2019-04-10 23:03:58 +0300
committerDan Webb <dan.webb@damacus.io>2019-04-10 23:03:58 +0300
commit696e6745532d21fb3dd89bdffc8b3b770ff58a4e (patch)
treeb45cbd6f8cc676fe4a3628f651f7dc88a47ba546
parentee171928d4affddeb83d0440b9bc8f8637bebd1d (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.html4
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>