{{ $section := .Site.GetPage "section" .Section }} {{ $pages := (where .Site.Pages "Section" .Section).ByWeight }} {{ $current := . }} {{ range $count, $page := $pages }} {{ if eq .Parent $section }} {{ $id := printf "card%d" $count }}
{{ 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.File.Dir "blog/" }}
{{ partial "large_icon.html" "rss" }}{{ i18n "subscribe" }}
{{ end }} {{ if strings.HasSuffix $section.File.Dir "news/" }}
{{ partial "large_icon.html" "rss" }}{{ i18n "subscribe" }}
{{ end }} {{ end }}