{{- define "main" }} {{ .Content }} {{ $content := .Content }}{{ range $i, $el := .Pages }} {{ if or $i $content }}
{{ end }}

{{ .Title }}

{{ if .PublishDate }}{{ .PublishDate.Format "02 January 2006" | lower }}{{ end }}

{{ .Summary }}

...

{{ end }} {{- end }}