Update html
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
</header>
|
||||
<section class="container">
|
||||
<div class="result-count">
|
||||
{{ if .Results }}
|
||||
{{ if (gt .Results.TotalResults 0)}}
|
||||
<p>
|
||||
About <strong>{{ .Results.TotalResults }}</strong> results were
|
||||
@@ -42,6 +43,7 @@
|
||||
>.
|
||||
</p>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<ul class="search-results">
|
||||
<!-- prettier-ignore -->
|
||||
@@ -63,6 +65,7 @@
|
||||
{{ end }}
|
||||
</ul>
|
||||
<div class="pagination">
|
||||
{{ if . }}
|
||||
{{ if (gt .NextPage 2) }}
|
||||
<a
|
||||
href="/search?q={{ .Query }}&page={{ .PreviousPage }}"
|
||||
@@ -77,6 +80,7 @@
|
||||
>Next</a
|
||||
>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
</section>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user