{{ $currentPage := . -}} {{ $section := $currentPage.Section -}} {{ range (where .Site.Sections "Section" "in" $section) }} {{ range .Sections }} {{ $active := in $currentPage.RelPermalink .RelPermalink }}

{{ if .Params.icon }}{{- partial "inline-svg" .Params.icon -}}{{ end }} {{ .Title }}

{{ end }} {{ range .RegularPages -}} {{ $active := in $currentPage.RelPermalink .RelPermalink -}} {{- end }} {{ end }}