kiez-en-francais/themes/portio/layouts/partials/pagination.html

27 lines
686 B
HTML
Raw Normal View History

2022-06-22 21:28:26 +02:00
{{ $pag := $.Paginator }}
{{ if gt $pag.TotalPages 1 }}
<nav aria-label="Page navigation" class="w-100">
<ul class="pagination justify-content-center pagination-lg">
{{ range $pag.Pagers }}
{{ if eq . $pag }}
<li class="page-item active">
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}</a>
</li>
{{ else }}
<li class="page-item">
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}</a>
</li>
{{ end }}
{{ end }}
{{ if $pag.HasNext }}
<li class="page-item">
<a class="page-link" href="{{ $pag.Next.URL }}" rel="next">
</a>
</li>
{{ end }}
</ul>
<!-- </nav> -->
</nav>
{{ end }}