{{ define "main" }} {{ if .Parent.IsHome }} {{ $.Scratch.Set "blog-pages" (where .Site.RegularPages "Section" .Section) }} {{ else }} {{$.Scratch.Set "blog-pages" .Pages }} {{ end }} {{ if gt (len ($.Scratch.Get "blog-pages")) 0 }} {{ $pag := .Paginate (( $.Scratch.Get "blog-pages").GroupByDate "2006")}} {{ $pageGroups := $pag.PageGroups}} {{ if eq $pag.PageNumber 1 }} {{ end }} {{ partial "deprecation-warning.html" . }}
{{ range $pageGroups }}

{{ T "post_posts_in" }} {{ .Key }}

{{ end }}
{{ template "_internal/pagination.html" . }}
{{ end }} {{ end }}