{{- $version := .version -}} {{- $pageUrl := .pageUrl -}} {{- $scratch := newScratch -}} {{- $docs := where .section "Section" "eq" "docs" -}} {{- $node := index (where $docs "IsNode" "eq" true) 0 -}} {{- $pages := where .section ".URL" "ne" $node.URL -}} {{- range $pages -}} {{- $scratch.Add "sectionsForVersion" (slice .) -}} {{- end -}} {{- if (ne ($scratch.Get "sectionsForVersion") nil) and (gt (len ($scratch.Get "sectionsForVersion")) 0) -}} {{- if $node -}} {{- $node.Params.short -}} {{- end -}} {{- range ($scratch.Get "sectionsForVersion") -}} {{- partial "docs/sidenav-link.html" (dict "ctx" . "pageUrl" $pageUrl "version" $version) -}} {{- end -}}
{{- end -}}