{{ $.Scratch.Set "topLevel" . }} {{ range $product := $.Site.Sections }} {{ range $version := .Sections }} {{ range $language := .Sections }} {{if $.CurrentSection}} {{ if .IsAncestor $.CurrentSection }} {{ $.Scratch.Set "topLevel" . }} {{end}} {{end}} {{end}} {{end}} {{end}} {{ define "section-tree-nav" }} {{ range .Sections}}
  • {{ .Title }} {{if gt (len .Sections) 0}} add_box {{end}}
  • {{ end }} {{ end }}