summaryrefslogtreecommitdiff
path: root/layouts/partials/pagination-controls.html
blob: b26d609c20517ced2fe719734e2d36f5de8d245f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{{ if gt .TotalPages 1 }}
<div class="pagination">
    <div class="pagination-control">
        {{ if .HasPrev }}
        <a href="{{ .Prev.URL | absURL }}">
            prev
        </a>
        {{ end }}
    </div>
    <div class="page-number">
        <p>
            {{ .PageNumber }}/{{ .TotalPages }}
        </p>
    </div>
    <div class="pagination-control">
        {{ if .HasNext }}
        <a href="{{ .Next.URL | absURL }}">
            next
        </a>
        {{ end }}
    </div>
</div>
{{ end }}