hugo-theme-anubis2/layouts/partials/pagination.html
Thorsten c76b46c62a
Update pagination.html
These strings are defined by humans and do not need to be humanized. Also humanize leads to wrong capitalization (only first letter is capitalized).
2020-07-25 23:14:10 +02:00

17 lines
739 B
HTML

{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }}
{{ $toNewPostsMessage := i18n "toNewPosts" }}
{{ $toOldPostsMessage := i18n "toOldPosts" }}
<div class="pagination">
<div class="left pagination-item {{ if not .Paginator.HasPrev }}disabled{{ end }}">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL | relLangURL }}">{{ $toNewPostsMessage }}</a>
{{ end }}
</div>
<div class="right pagination-item {{ if not .Paginator.HasNext }}disabled{{ end }}">
{{ if .Paginator.HasNext }}
<a href="{{ .Paginator.Next.URL | relLangURL }}">{{ $toOldPostsMessage }}</a>
{{ end }}
</div>
</div>
{{ end }}