{{ define "main" }}
{{ $type := .Type }} {{ $.Scratch.Set "count" 1 }} {{ range (.Site.RegularPages.GroupByDate "2006") }} {{ if (gt .Key 2000) }} {{ range (where .Pages "Type" $type) }} {{ if (eq ($.Scratch.Get "count") 1) }} {{ $.Scratch.Set "count" 0 }}

{{ .Date.Format "2006" }}

{{ end }} {{ end }} {{ $.Scratch.Set "count" 1 }}
{{ end }} {{ end }}
{{ end }}