mirror of
https://github.com/yanislav-igonin/micrach
synced 2024-12-22 22:32:33 +03:00
fbe39f45a3
* feat: header component * feat: captcha component * feat: rename all html files * feat: update github link * feat: all templates in subfolders * feat: separate thread card * feat: separate pagination * feat: update pagination * feat: separate post * lint
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 }}
|