added cactus theme files
This commit is contained in:
13
hugo-content/themes/cactus/layouts/partials/pagination.html
Normal file
13
hugo-content/themes/cactus/layouts/partials/pagination.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{{ $pag := $.Paginator }}
|
||||
{{ if gt $pag.TotalPages 1 }}
|
||||
<div class="pagination">
|
||||
{{ if $pag.HasPrev }}
|
||||
<a href="{{ $pag.Prev.URL }}"><i class="fas fa-angle-left"></i></a>
|
||||
{{ end }}
|
||||
<span class="page-number">Page {{ $pag.PageNumber }} of {{ $pag.TotalPages }}</span>
|
||||
{{ if $pag.HasNext }}
|
||||
<a href="{{ $pag.Next.URL }}"><i class="fas fa-angle-right"></i>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user