diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index a6be42fa6f..0f9c8f8a5a 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -94,12 +94,14 @@ {{ define "section-tree-nav" }} {{ $showvisitedlinks := .showvisitedlinks }} {{ $currentNode := .currentnode }} +{{ $currentFileUniqueID := "" }} +{{ with $currentNode.File }}{{ $currentFileUniqueID = .UniqueID }}{{ end }} {{with .sect}} {{if and .IsSection ((not .Params.hidden) or $.showhidden)}} {{safeHTML .Params.head}}