Archived
Template
1
0

Added better pagination style

This commit is contained in:
uberswe
2022-02-06 04:29:22 +01:00
parent a2a1f03cad
commit 5e28422425

View File

@ -11,14 +11,16 @@
<p><a href="{{ $result.URL }}">{{ $result.URL }}</a></p> <p><a href="{{ $result.URL }}">{{ $result.URL }}</a></p>
</div> </div>
{{ end }} {{ end }}
<div class="pagination"> <nav aria-label="Page navigation">
{{ if .Prev }} <ul class="pagination">
<a href="{{ .PrevURL }}">{{ call .Trans "Previous" }}</a> {{ if .Prev }}
{{ end }} <li class="page-item"><a class="page-link" href="{{ .PrevURL }}">{{ call .Trans "Previous" }}</a></li>
{{ if .Next }} {{ end }}
<a href="{{ .NextURL }}">{{ call .Trans "Next" }}</a> {{ if .Next }}
{{ end }} <li class="page-item"><a class="page-link" href="{{ .NextURL }}">{{ call .Trans "Next" }}</a></li>
</div> {{ end }}
</ul>
</nav>
</div> </div>
</main> </main>