{{ "" | safeHTML }} {{ "" | safeHTML }} {{- $showvisitedlinks := .Site.Params.showVisitedLinks }} {{- define "section-tree-nav" }} {{- $showvisitedlinks := .showvisitedlinks }} {{- $currentNode := .currentnode }} {{- $currentFileRelPermalink := .currentnode.RelPermalink }} {{- $alwaysopen := .alwaysopen }} {{- with .sect }} {{- $relearnIsHiddenFrom := index ($currentNode.Scratch.Get "relearnIsHiddenFrom") .RelPermalink }} {{- $hidden := and $relearnIsHiddenFrom (not $.showhidden) (not (.IsAncestor $currentNode)) }} {{- if $hidden }} {{- else if .IsSection }} {{- safeHTML .Params.head }} {{- $defaultOrdersectionsby := .Site.Params.ordersectionsby | default "weight" }} {{- $currentOrdersectionsby := .Params.ordersectionsby | default $defaultOrdersectionsby }} {{- $currentAlwaysopen := .Params.alwaysopen | default $alwaysopen }}