{{ define "main" }}
{{- partial "content.header.html" . -}} {{- with .Content -}}
{{ . }}
{{- end -}}
{{ $indexScratch := .Scratch }} {{ range .Sections }} {{ $indexScratch.Add "sections" (slice . ) }} {{ end }} {{- range ($indexScratch.Get "sections").ByTitle -}}

{{ .Title }}{{- if .Draft -}} :: Draft {{- end -}}

{{- end -}}
{{ partial "footer.html" . }} {{ partial "nav.html" . }}
{{ end }}