Casual_blog/themes/anubis2/layouts/partials/post-pagination.html

19 lines
842 B
HTML
Raw Normal View History

2024-03-07 06:27:02 +00:00
{{ 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" . }}