init commit
This commit is contained in:
31
layouts/partials/pagination.html
Normal file
31
layouts/partials/pagination.html
Normal file
@ -0,0 +1,31 @@
|
||||
{{ with $.Paginator }}
|
||||
{{ if gt .TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
{{ with .Prev }}
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="{{ .URL }}">
|
||||
<svg class="svg-icon-prev" width="15" height="15" viewBox="0 0 6 6" fill="none" stroke="#fff" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M.375 3h5.25M.375 3L2.625.75M.375 3l2.25 2.25" stroke-width=".75" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ range .Pagers }}
|
||||
<li class="page-item{{ if eq .PageNumber $.Paginator.PageNumber }} active{{ end }}">
|
||||
<a class="page-link" href="{{ .URL }}">{{ .PageNumber }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
|
||||
{{ with .Next }}
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="{{ .URL }}">
|
||||
<svg class="svg-icon-next" width="15" height="15" viewBox="0 0 6 6" fill="none" stroke="#fff" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="M5.625 3H.375m5.25 0L3.375.75M5.625 3l-2.25 2.25" stroke-width=".75" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
Reference in New Issue
Block a user