2021-04-09 11:25:56 +02:00
|
|
|
{{- $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
|
|
|
|
{{- if and (gt (len $pages) 1) (in $pages . ) }}
|
|
|
|
<nav class="paginav">
|
|
|
|
{{- with $pages.Next . }}
|
|
|
|
<a class="prev" href="{{ .Permalink }}">
|
|
|
|
<span class="title">« {{ i18n "prev_page" }}</span>
|
|
|
|
<br>
|
2022-09-23 19:15:49 +02:00
|
|
|
<span class="name">{{- .Name -}}</span>
|
2021-04-09 11:25:56 +02:00
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
{{- with $pages.Prev . }}
|
|
|
|
<a class="next" href="{{ .Permalink }}">
|
|
|
|
<span class="title">{{ i18n "next_page" }} »</span>
|
|
|
|
<br>
|
2022-09-23 19:15:49 +02:00
|
|
|
<span class="name">{{- .Name -}}</span>
|
2021-04-09 11:25:56 +02:00
|
|
|
</a>
|
|
|
|
{{- end }}
|
|
|
|
</nav>
|
|
|
|
{{- end }}
|