{{ define "main" }}

{{ if .Params.heading }} {{ .Params.heading }} {{ else }} {{ .Title }} {{ end }}

{{ if .Params.headerImg }} {{ if .Params.headerAlt }}{{ .Params.headerAlt }}{{ else }}Header Image{{ end }} {{ end }} {{ .Content }} {{ if .Sections }} {{- partial "blog-section-list.html" . -}} {{ else }} {{- partial "blog-list.html" . -}} {{ end }}
{{ end }}