{{ define "main" }} {{ .Content }} {{ $pagination := .Paginate .RegularPages }} {{ with .Content }}{{ with $pagination.Pages }}
{{ end }}{{ end }} {{ range $pagination.Pages }}

{{ .Title }}

{{ .Content }} {{ if ne .Slug (index (last 1 $pagination.Pages) 0).Slug }}
{{ end }} {{ end }} {{ with $pagination }} {{ if gt .TotalPages 1 }} {{ end }} {{ end }} {{ end }}