2020-06-07 13:20:40 +02:00
|
|
|
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
|
2023-07-24 10:44:01 +02:00
|
|
|
{{ $toNewPostMessage := i18n "toNewPost" }}
|
|
|
|
{{ $toOldPostMessage := i18n "toOldPost" }}
|
2020-06-07 13:20:40 +02:00
|
|
|
<div class="pagination post-pagination">
|
2020-06-07 13:25:18 +02:00
|
|
|
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
|
2020-06-07 13:20:40 +02:00
|
|
|
{{ if .NextInSection }}
|
2023-08-12 10:28:38 +02:00
|
|
|
<a href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title | default $toNewPostMessage | markdownify }}</a>
|
2020-06-07 13:20:40 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-06-07 13:25:18 +02:00
|
|
|
<div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
|
|
|
|
{{ if .PrevInSection }}
|
2023-08-12 10:28:38 +02:00
|
|
|
<a href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title | default $toOldPostMessage | markdownify }}</a>
|
2020-06-07 13:25:18 +02:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
2020-06-07 13:20:40 +02:00
|
|
|
</div>
|
2021-02-23 21:49:44 +01:00
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ partial "pagination-extra.html" . }}
|