{{- define "main" }} {{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }} {{- range $pages.GroupByPublishDate "2006" }} {{- if ne .Key "0001" }}

{{- replace .Key "0001" "" }}  {{ len .Pages }}

{{- range .Pages.GroupByDate "January" }}

{{- .Key }}  {{ len .Pages }}

{{- range .Pages }} {{- if eq .Kind "page" }}

{{- .Title | markdownify }}

{{- if $.Site.Params.ShowReadingTime }} ·  {{- $default_txt := print .ReadingTime " " "min" }} {{- i18n "read_time" .ReadingTime | default $default_txt }}{{ end }} {{- if or .Params.author .Site.Params.author }} · {{- .Params.author | default .Site.Params.author }}{{ end }}
{{- end }} {{- end }}
{{- end }}
{{- end }} {{- end }} {{- end }}{{/* end main */}}