{{ define "main" }} {{ $isntDefault := not (or (eq (trim $.Site.Params.contentTypeName " ") "posts") (eq (trim $.Site.Params.contentTypeName " ") "")) }} {{ $contentTypeName := cond $isntDefault (string $.Site.Params.contentTypeName) "posts" }}

{{ .Title }}

{{ range .Site.RegularPages.GroupByPublishDate "2006" }} {{ if ne .Key "0001" }}

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

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

{{ .Key }}

{{ range where .Pages "Type" $contentTypeName }} {{ if eq .Kind "page" }}

{{ .Title | markdownify }}

{{ end }} {{ end }}
{{ end }}
{{ end }} {{ end }}
{{ end }}