{{ define "main"}}

{{ .Title }}

{{ partial "header.html" . }} {{ if not .Date.IsZero }} {{ $singlePageDateFormat := .Site.Params.singlePageDateFormat | default "January 2, 2006"}}

{{ end }}
{{ .Content }}
{{ partial "footer.html" . }} {{ end }}