diff --git a/src/themes/hugo-theme-learn/layouts/partials/menu.html b/src/themes/hugo-theme-learn/layouts/partials/menu.html index a6be42fa6..0f9c8f8a5 100644 --- a/src/themes/hugo-theme-learn/layouts/partials/menu.html +++ b/src/themes/hugo-theme-learn/layouts/partials/menu.html @@ -94,12 +94,14 @@

{{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

{{ 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}}
  • @@ -137,7 +139,7 @@

    {{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

  • {{else}} {{ if not .Params.Hidden }} -
  • +
  • {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}} {{ if $showvisitedlinks}}{{end}} @@ -147,4 +149,3 @@

    {{ if not $disableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}

    {{end}} {{ end }} {{ end }} -