{{/* minikube hack: temporarily forked from docsy/layouts/partials/sidebar-tree.html for hugo v0.69 compatibility */}} {{/* We cache this partial for bigger sites and set the active class client side. */}} {{ $shouldDelayActive := ge (len .Site.Pages) 2000 }}
{{ define "section-tree-nav-section" }} {{ $s := .section }} {{ $p := .page }} {{ $shouldDelayActive := .delayActive }} {{ $active := eq $p.CurrentSection $s }} {{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) }} {{/* minikube hack: Override $show due to a Hugo upgrade bug */}} {{ $show = true }} {{/* end minikube hack */}} {{ $sid := $s.RelPermalink | anchorize }} {{ end }}