{{ define "main" }}

{{.Title}}

{{ with .Params.subtitle }} {{.}} {{ end }}
{{.Content}}
{{ .Site.Params.mainSections }} {{ $pages := where site.RegularPages "Type" "in" ("") }} {{ range $pages.ByPublishDate.Reverse }}

{{ .Title | markdownify }} {{ $customDateFormat := "January 2, 2006" }} {{ with .Site.Params.customDateFormat }}{{ $customDateFormat = . }}{{ end }}
{{ .PublishDate.Format $customDateFormat }} {{ partial "tags" . }} {{ if eq .Site.Params.showPostSummary true }}
{{ .Summary }} {{ end }}

{{ end }} {{ end }}