{{ define "main" }}

{{ .Params.title }}

{{ .Params.description }}

{{ $.Scratch.Set "years" (slice ) }} {{ $.Scratch.Set "noYears" 0 }} {{ $pages := (where .Site.RegularPages "Section" "blog").ByPublishDate.Reverse }} {{ range $pages }} {{ with .Params.publishdate }} {{ if eq ( printf "%T" (substr . 0 4) ) "string" }} {{ if ( not ( in ($.Scratch.Get "years") (substr . 0 4) ) ) }} {{ $.Scratch.Add "years" (substr . 0 4) }} {{ end }} {{ end }} {{ end }} {{ end }}
{{ range $.Scratch.Get "years" }} {{ end }}
{{ partial "subscribe_button.html" (dict "section" "blog") }} {{ partial "primary_bottom.html" . }} {{ end }}