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

{{ . }}

{{ end }} {{.Content}}
{{ else }}
{{ 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 }}