You've already forked golang-base-project
Added better pagination style
This commit is contained in:
18
dist/templates/search.html
vendored
18
dist/templates/search.html
vendored
@ -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>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user