mirror of
https://github.com/idanoo/m2.nz
synced 2025-07-02 21:32:15 +00:00
Commit theme
This commit is contained in:
parent
1ec1007169
commit
690a3ff983
46 changed files with 2443 additions and 0 deletions
27
themes/m10c/layouts/partials/pagination.html
Normal file
27
themes/m10c/layouts/partials/pagination.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
{{ with $.Paginator }}
|
||||
{{ if gt .TotalPages 1 }}
|
||||
<ul class="pagination">
|
||||
{{ with .Prev }}
|
||||
<li class="page-item">
|
||||
<a class="page-link" href="{{ .URL }}">
|
||||
{{ partial "icon.html" (dict "ctx" $ "name" "arrow-left") }}
|
||||
</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 }}">
|
||||
{{ partial "icon.html" (dict "ctx" $ "name" "arrow-right") }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Add table
Add a link
Reference in a new issue