19 lines
842 B
HTML
19 lines
842 B
HTML
|
{{ if or ( .PrevInSection ) ( .NextInSection ) }}
|
||
|
{{ $toNewPostMessage := i18n "toNewPost" }}
|
||
|
{{ $toOldPostMessage := i18n "toOldPost" }}
|
||
|
<div class="pagination post-pagination">
|
||
|
<div class="left pagination-item {{ if not .NextInSection }}disabled{{ end }}">
|
||
|
{{ if .NextInSection }}
|
||
|
<a href="{{ .NextInSection.RelPermalink }}">{{ .NextInSection.Title | default $toNewPostMessage | markdownify }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
<div class="right pagination-item {{ if not .PrevInSection }}disabled{{ end }}">
|
||
|
{{ if .PrevInSection }}
|
||
|
<a href="{{ .PrevInSection.RelPermalink }}">{{ .PrevInSection.Title | default $toOldPostMessage | markdownify }}</a>
|
||
|
{{ end }}
|
||
|
</div>
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ partial "pagination-extra.html" . }}
|