2022-06-27 17:27:51 +02:00
|
|
|
{{ define "main" }}
|
|
|
|
{{ .Content }}
|
2022-07-08 04:16:32 +02:00
|
|
|
{{ $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 }}
|
2022-06-27 17:27:51 +02:00
|
|
|
{{ end }}
|