{{ define "main" }}

{{ humanize .Page.Title }}

{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 0 }}{{ partial "box.html" $page }}{{ end }} {{ end }}
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 1 }}{{ partial "box.html" $page }}{{ end }} {{ end }}
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 2 }}{{ partial "box.html" $page }}{{ end }} {{ end }}
{{ range $index, $page := .Pages }} {{ if eq (mod $index 4) 3 }}{{ partial "box.html" $page }}{{ end }} {{ end }}
{{ end }}