mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
13 lines
403 B
HTML
13 lines
403 B
HTML
|
{{ define "pagiantion" }}
|
||
|
<nav aria-label="Page navigation">
|
||
|
<ul id="pagesList" class="pagination justify-content-center">
|
||
|
{{ $ActivePage := .Page }}
|
||
|
{{ range $i := Iterate .PagesCount }}
|
||
|
<li class="page-item {{ if (eq $i $ActivePage) }} active {{ end }}">
|
||
|
<a class="page-link" href="/?page={{ $i }}">{{ $i }}</a>
|
||
|
</li>
|
||
|
{{ end }}
|
||
|
</ul>
|
||
|
</nav>
|
||
|
{{ end }}
|