{{ $section := .Site.GetPage "section" .Section }} {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} {{ $current := . }} {{ range $count, $page := $pages }} {{ if eq .Parent $section }} {{ $id := printf "header%d" $count }}
{{- if $page.Params.icon -}} {{- partial "icon.html" .Params.icon -}} {{- end -}} {{- $page.Title -}}
{{ partial "sidebar_level.html" (dict "pages" $pages "parent" $page "current" $current "collapse" false "top" true "labelledby" $id ) }}
{{ end }} {{ end }} {{ if not .Site.Data.args.archive }} {{ if strings.HasSuffix $section.Dir "blog/" }}
{{ partial "large_icon.html" "rss" }}{{ i18n "subscribe" }}
{{ end }} {{ end }}