blob: 037dd75cdc583e4b3c31cfaedcb1bd2fa051d51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<div class="p-article-pagination">
{{ $pagesInSection := (where .Site.RegularPages "Section" .Section) }}
{{ with $pagesInSection.Prev . }}
<a class="p-article-pagination__link--previous" href="{{ .Permalink }}">
<span class="p-article-pagination__label">{{ i18n "previous" | default "Previous" }}</span>
<span class="p-article-pagination__title">
{{ .Title }}
</span>
</a>
{{ end }}
{{ with $pagesInSection.Next . }}
<a class="p-article-pagination__link--next" href="{{ .Permalink }}">
<span class="p-article-pagination__label">{{ i18n "next" | default "Next" }}</span>
<span class="p-article-pagination__title">
{{ .Title }}
</span>
</a>
{{ end }}
</div>
|