{{- if not $paginator.HasPrev }}
{{ T "archiveCounter" (len .Data.Pages) }}
{{- end -}}
{{- range $index, $element := $paginator.Pages -}}
{{- $thisYear := $element.Date.Format "2006" }}
{{- $lastElement := $index | add -1 | index $paginator.Pages }}
{{ if or (eq $index 0) ( ne ($lastElement.Date.Format "2006") $thisYear ) }}
{{ $thisYear }}
{{- end }}
{{ $element.Date.Format "01-02" }}
{{ .Title }}
{{- end -}}
{{ end }}