{{/* 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 }}
{{ if not .Site.Params.ui.sidebar_search_disable }} {{ end }}
{{ define "section-tree-nav-section" }} {{ $s := .section }} {{ $p := .page }} {{ $shouldDelayActive := .delayActive }} {{ $activeSection := eq $p.CurrentSection $s }} {{/* minikube hack: Override $showSection due to a Hugo upgrade bug */}} {{ $showSection := false }} {{ $expandSection := false }} {{ $sid := $s.RelPermalink | anchorize }} {{ $sectionParent := $s.Parent.Title | anchorize }} {{ $csid := $p.CurrentSection.Title | anchorize }} {{ if $p.IsDescendant $s }} {{ $showSection = true }} {{ else if eq $sectionParent "minikube" }} {{ $showSection = true }} {{ else if eq $sectionParent "welcome" }} {{ $showSection = true }} {{ else if eq $sectionParent "handbook" }} {{ $showSection = true }} {{ else if eq $p.CurrentSection $s.Parent }} {{ $showSection = true }} {{ else if $p.Parent.IsAncestor $s }} {{ if eq $s $p.CurrentSection }} {{ $showSection = true }} {{ end }} {{ end }} {{/* end minikube hack */}} {{ $sid := $s.RelPermalink | anchorize }} {{ if $showSection }} {{ end }} {{ end }}