{{ $prev := now.Format "2006"}} {{ range first 1 .Pages.ByPublishDate.Reverse }} {{if .Date}} {{if eq $prev (.Date.Format "2006")}}

{{ $prev }}

{{end}} {{end}} {{end}} {{range .Pages.ByPublishDate.Reverse}} {{if .Date}} {{$curr := .Date.Format "2006"}} {{if lt $curr $prev }}

{{ $curr }}

{{end}}
  • {{ if .Params.date }} {{ .Date.Format (.Site.Params.dateFormat | default "Jan 02, 2006") }} - {{ end }} {{ .Title | markdownify }}
  • {{ $prev = $curr}} {{end}} {{end}}