{{ range (where .Site.RegularPages "Section" "posts").GroupByDate "January 2006" "asc" }} {{ $.Scratch.Set "current" false }} {{ range first 1 .Pages }} {{ if eq (.Date.Format "2006") ($.Get 0) }} {{ $.Scratch.Set "current" true }} {{ end }} {{ end }} {{ if eq ($.Scratch.Get "current") (true) }} {{ range first 1 .Pages }} {{ i18n (printf "month_long_%d" .Date.Month) }} {{ .Date.Format "2006" }} {{ end }}