1
1
Fork 0
website/themes/meins/layouts/_default/list.html

22 Zeilen
527 B
HTML

2022-06-26 19:55:39 +00:00
{{ define "main" }}
<div>
<h1>{{ .Title }}</h1>
{{.Content}}
</div>
{{ range .Paginator.Pages }}
<a alt="" href="{{.Permalink}}">
<article>
<h2>{{ .Title }}</h2>
{{ .Render "Summary"}}
</article>
</a>
{{ end }}
<nav aria-label="Page Navigation">
{{ if .Paginator.HasPrev }}
<a rel="prev" href="{{ .Paginator.Prev.URL }}">Vorherige Seite</a>
2022-06-26 19:55:39 +00:00
{{ end }}
{{ if .Paginator.HasNext }}
<a rel="next" href="{{ .Paginator.Next.URL }}">Nächste Seite</a>
2022-06-26 19:55:39 +00:00
{{ end }}
</nav>
{{ end }}