{{ define "main" }} {{ if .Title }}

{{ .Title }}

{{.Content}}
{{ range .Pages }} {{ .Render "summary" }} {{ end }}
{{ end }} {{- range $index, $page := .Pages }} {{ $odd := mod $index 2 }} {{ $id := .Params.id | default $page.File.ContentBaseName }} {{ if eq .Params.type "hero" }} {{- partial "hero.html" (dict "id" $id "hero" .Params "content" .Content "odd" $odd) -}} {{ end}} {{ end }} {{ end }}