{{- define "title" -}} {{- .Title -}} {{- end -}} {{- define "main" -}}

{{- .Title -}}

{{- $posts := where .Site.RegularPages "Section" "posts" -}} {{- range $posts.GroupByDate "2006" -}} {{- $head := index .Pages 0 -}} {{- $year := $head.Date.Format "2006" -}}

{{$year}}

{{- end -}}
{{- end -}}