hugo-geekblog/layouts/partials/pagination.html

23 lines
764 B
HTML
Raw Permalink Normal View History

2020-07-06 18:55:32 +00:00
{{ $pag := $.Paginator }}
<nav class="gblog-paging flex flex-even align-center" role="navigation">
<div class="gblog-paging__item gblog-paging__item--prev">
2020-07-06 18:55:32 +00:00
{{ if $pag.HasPrev }}
2022-01-12 20:32:34 +00:00
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Prev.URL }}">
<i class="gblog-icon">gblog_keyboard_arrow_left</i>
PREV
</a>
2020-07-06 18:55:32 +00:00
{{ end }}
</div>
<div class="gblog-paging__state">Page {{ $pag.PageNumber }} of {{ $pag.TotalPages }}</div>
<div class="gblog-paging__item gblog-paging__item--next">
2020-07-06 18:55:32 +00:00
{{ if $pag.HasNext }}
2022-01-08 12:45:19 +00:00
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Next.URL }}">
2022-01-12 20:32:34 +00:00
NEXT
<i class="gblog-icon">gblog_keyboard_arrow_right</i>
2022-01-08 12:45:19 +00:00
</a>
2020-07-06 18:55:32 +00:00
{{ end }}
</div>
2020-07-06 18:55:32 +00:00
</nav>