mirror of
https://github.com/thegeeklab/hugo-geekblog.git
synced 2024-11-23 05:30:41 +00:00
16 lines
581 B
HTML
16 lines
581 B
HTML
{{ $pag := $.Paginator }}
|
|
|
|
<nav class="gblog-paging flex justify-between align-center " role="navigation">
|
|
<div class="gblog-paging__button is-next">
|
|
{{ if $pag.HasPrev }}
|
|
<a class="gblog-paging__link" href="{{ $pag.Prev.URL }}">← Newer posts</a>
|
|
{{ end }}
|
|
</div>
|
|
<div class="gblog-paging__state">Page {{ $pag.PageNumber }} of {{ $pag.TotalPages }}</div>
|
|
<div class="gblog-paging__button is-prev">
|
|
{{ if $pag.HasNext }}
|
|
<a class="gblog-paging__link" href="{{ $pag.Next.URL }}">Older posts →</a>
|
|
{{ end }}
|
|
</div>
|
|
</nav>
|