This repository has been archived on 2021-09-01. You can view files and clone it, but cannot push or open issues or pull requests.
theme-geeklab/layouts/partials/pagination.html

12 lines
408 B
HTML
Raw Normal View History

2018-10-09 06:25:05 +00:00
{{ $pag := $.Paginator }}
<nav class="pagination" role="navigation">
{{ if $pag.HasPrev }}
<a class="newer-posts" href="{{ $pag.Prev.URL }}">&larr; Newer Posts</a>
{{ end }}
<span class="page-number">Page {{ $pag.PageNumber }} of {{ $pag.TotalPages }}</span>
{{ if $pag.HasNext }}
<a class="older-posts" href="{{ $pag.Next.URL }}">Older Posts &rarr;</a>
{{ end }}
</nav>