{{- define "main" }} {{ .Title }} {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}