{{ $prev := now.Format "2006"}}

{{ $prev }}

{{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}}