pagination.html 511 Bytes
Newer Older
Ravi Dwivedi's avatar
Ravi Dwivedi committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<nav class="pagination pager align-center">
            <hr>
    <ul>
           {{if .Paginator.HasPrev }}
        <li class="prev"><a href="{{ .Paginator.Prev.URL }}">Previous</a></li>
        {{ end }}
        <li>

        <a href="" class="button round small outline">Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</a>
        </li>
            {{ if .Paginator.HasNext }}</a>
        <li class="next"><a href="{{ .Paginator.Next.URL }}">Next</a></li>
           {{ end }}
    </ul>
</nav>