- end}}

<!-- templates -->
{{- define "section-tree-nav" }}
{{- $currentNode := .currentnode }}
 {{- with .sect}}
  <dt><span class="section"><a href="{{ .RelPermalink}}">{{.Title | markdownify}}</a></span></dt>
  {{- if lt $.count $.tocdepth }}
    {{- if and .IsSection (or (not .Params.hidden) $.showhidden)}}
      {{- $numberOfPages := (add (len .Pages) (len .Sections)) }}
      {{- if ne $numberOfPages 0 }}
        <dd><dl>
          {{- .Scratch.Set "pages" .Pages }}
          {{- if .Sections}}
     