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

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

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

{{- .Key }}

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

{{- .Title | markdownify }}

{{- if or .Params.author .Site.Params.author }} {{- .Params.author | default .Site.Params.author }} · {{- end }} {{- if $.Site.Params.ShowReadingTime }} {{ .ReadingTime }}{{ i18n "read_time" | default "min read" }} · {{ end }} {{- .Date.Format "January 2, 2006" -}}
{{- end }} {{- end }}
{{- end }}
{{- end }} {{- end }} {{- end }}{{/* end main */}}