distribution/docs/themes/hugo-geekdoc/layouts/partials/pagination.html
David Karlsson e2ae76f1f2 docs: add hugo site
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-11 16:45:16 +02:00

22 lines
816 B
HTML

{{ $pag := $.Paginator }}
<nav class="gdoc-paging flex flex-even align-center" role="navigation">
<div class="gdoc-paging__item gdoc-paging__item--prev">
{{ if $pag.HasPrev }}
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Prev.URL }}">
<i class="gdoc-icon">gdoc_keyboard_arrow_left</i>
{{ i18n "pagination_page_prev" | upper }}
</a>
{{ end }}
</div>
<div class="gdoc-paging__state">{{ i18n "pagination_page_state" $pag }}</div>
<div class="gdoc-paging__item gdoc-paging__item--next">
{{ if $pag.HasNext }}
<a class="flex-inline align-center fake-link no-wrap" href="{{ $pag.Next.URL }}">
{{ i18n "pagination_page_next" | upper }}
<i class="gdoc-icon">gdoc_keyboard_arrow_right</i>
</a>
{{ end }}
</div>
</nav>