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

{{ .Title }}

{{.Content}}
{{ range .Pages }}

{{ .Title }}

{{ 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 }}