mirror of
https://github.com/Speyll/anemone.git
synced 2024-11-22 13:06:41 +00:00
16 lines
526 B
HTML
16 lines
526 B
HTML
|
{{ $pag := $.Paginator }}
|
||
|
{{ if gt $pag.TotalPages 1 }}
|
||
|
<ul class="pagination">
|
||
|
<span class="pagePrev">
|
||
|
{{ if $pag.HasPrev }}
|
||
|
<a {{ if $pag.HasPrev }}href="{{ $pag.Prev.URL }}"{{ end }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
|
||
|
{{ end }}
|
||
|
</span>
|
||
|
<span class="pageNext">
|
||
|
{{ if $pag.HasNext }}
|
||
|
<a {{ if $pag.HasNext }}href="{{ $pag.Next.URL }}"{{ end }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
|
||
|
{{ end }}
|
||
|
</span>
|
||
|
</ul>
|
||
|
{{ end }}
|