{{- define "section-tree-nav" }} {{- $s := .section }} {{- $p := .page }} {{- $l := .level }} {{- $data := .data }} {{- $active := eq $p.CurrentSection $s }} {{- $show := or ($p.IsDescendant $s) (eq $p $s) }} {{- $sid := delimit (slice "docs-nav-section-pages" ($s.RelPermalink | anchorize)) "-" -}}
  • {{- if isset $s.Params "toc_title" -}} {{ $s.Params.toc_title | markdownify -}} {{ else if isset $s.Params "id" -}} {{ if isset $data.addons $s.Language.Lang }} {{ $addon_data := ( index ( where ( index $data.addons $s.Language.Lang ) "id" .Params.id ) 0 ) }} {{ $addon_data.name }} {{ else }} {{ $addon_data := ( index ( where $data.addons.en "id" .Params.id ) 0 ) }} {{ $addon_data.name }} {{ end }} {{ else -}} {{ $s.LinkTitle | markdownify -}} {{ end -}} {{- if (not (eq $l 1)) -}}{{- template "svg" -}}{{ end -}}
  • {{- end -}} {{- define "svg" -}}{{- end -}}