{{ $type := .Type }} {{ if .IsSection }} {{ range where .Pages "Kind" "section" }} {{ i18n (printf "%s.archives" $type) }} {{ end }} {{ end }}