hacker.tours-website/themes/zen/layouts/partials/pagination.html

15 lines
576 B
HTML
Raw Normal View History

2024-06-13 22:14:05 +02:00
{{ if $.Param "internalpagination" -}}
{{ template "_internal/pagination.html" . }}
{{ else -}}
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) -}}
<nav class="pager">
{{ if .Paginator.HasPrev -}}
<a href="{{ .Paginator.Prev.URL }}" rel="prev" class="pager__item pager__item--prev"><span aria-hidden="true">« </span>{{ i18n "pager_prev" }}</a>
{{ end -}}
{{ if .Paginator.HasNext -}}
<a href="{{ .Paginator.Next.URL }}" rel="next" class="pager__item pager__item--next">{{ i18n "pager_next" }}<span aria-hidden="true"> »</span></a>
{{ end -}}
</nav>
{{ end -}}
{{ end -}}