mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-29 22:06:54 +01:00
20 lines
519 B
HTML
20 lines
519 B
HTML
{{- $pages := .CurrentSection.RegularPages.ByTitle }}
|
|
{{- 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>
|
|
<span>{{- .Name -}}</span>
|
|
</a>
|
|
{{- end }}
|
|
{{- with $pages.Prev . }}
|
|
<a class="next" href="{{ .Permalink }}">
|
|
<span class="title">{{ i18n "next_page" }} »</span>
|
|
<br>
|
|
<span>{{- .Name -}}</span>
|
|
</a>
|
|
{{- end }}
|
|
</nav>
|
|
{{- end }}
|