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>
|
||||
</div>
|
||||
{{ end }}
|
||||
<div class="pagination">
|
||||
{{ if .Prev }}
|
||||
<a href="{{ .PrevURL }}">{{ call .Trans "Previous" }}</a>
|
||||
{{ end }}
|
||||
{{ if .Next }}
|
||||
<a href="{{ .NextURL }}">{{ call .Trans "Next" }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
<nav aria-label="Page navigation">
|
||||
<ul class="pagination">
|
||||
{{ if .Prev }}
|
||||
<li class="page-item"><a class="page-link" href="{{ .PrevURL }}">{{ call .Trans "Previous" }}</a></li>
|
||||
{{ end }}
|
||||
{{ if .Next }}
|
||||
<li class="page-item"><a class="page-link" href="{{ .NextURL }}">{{ call .Trans "Next" }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
|
Reference in New Issue
Block a user