{{/* 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 }} {{ $active := eq $p.CurrentSection $s }} {{ $show := or (and (not $p.Site.Params.ui.sidebar_menu_compact) ($p.IsAncestor $s)) ($p.IsDescendant $s) }} {{ $sid := $s.RelPermalink | anchorize }} {{ end }}