7
1
mirror of https://gitlab.com/ansol/web-ansol.org.git synced 2024-11-29 17:18:48 +00:00
web-ansol.org/themes/academic/layouts/partials/pagination.html

13 lines
420 B
HTML
Raw Normal View History

2020-06-11 11:46:16 +00:00
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav>
<ul class="pagination justify-content-center">
{{ if .Paginator.HasPrev }}
<li class="page-item"><a class="page-link" href="{{ .Paginator.Prev.URL }}">&laquo;</a></li>
{{ end }}
{{ if .Paginator.HasNext }}
<li class="page-item"><a class="page-link" href="{{ .Paginator.Next.URL }}">&raquo;</a></li>
{{ end }}
</ul>
</nav>
{{ end }}