22 Zeilen
505 B
HTML
22 Zeilen
505 B
HTML
|
{{ 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 href="{{ .Paginator.Prev.URL }}">Vorherige Seite</a>
|
||
|
{{ end }}
|
||
|
{{ if .Paginator.HasNext }}
|
||
|
<a href="{{ .Paginator.Next.URL }}">Nächste Seite</a>
|
||
|
{{ end }}
|
||
|
</nav>
|
||
|
{{ end }}
|