{{ define "main" }} {{ .Content }} {{ $pagination := .Paginate .RegularPages }} {{ with .Content }}{{ with $pagination.Pages }}<hr>{{ end }}{{ end }} {{ range $pagination.Pages }} <h1><a href="{{ .RelPermalink }}">{{ .Title }}</a></h1> {{ .Content }} {{ if ne .Slug (index (last 1 $pagination.Pages) 0).Slug }}<hr>{{ end }} {{ end }} {{ with $pagination }} {{ if gt .TotalPages 1 }} <nav class="pagination"> {{ if .HasPrev }}<a href="{{ .Prev.URL }}">< Neuere Posts</a>{{ end }} <span>{{ .PageNumber }}/{{ .TotalPages }}</span> {{ if .HasNext }}<a href="{{ .Next.URL }}">Ältere Posts ></a>{{ end }} </nav> {{ end }} {{ end }} {{ end }}