{{- $year := "" }} {{- range .GroupByDate "2006" }} {{- $year := .Key }}
{{- $yearSection := printf "archives/%s" $year }} {{- with site.GetPage $yearSection }} {{- .Title -}} {{- else }} {{- warnf "[archives] section %s not found" $yearSection }} {{- .Key -}} {{- end }}
{{- range .GroupByDate "01" }}
{{- $monthSection := printf "archives/%s/%s" $year .Key }} {{- with site.GetPage $monthSection }} {{- .Title -}} {{- else }} {{- warnf "[archives] section %s not found" $monthSection }} {{- .Key -}} {{- end }}
{{ partial "hb/modules/blog/posts" (dict "Pages" .Pages) }}
{{- end }}
{{- end }}