Update html

This commit is contained in:
Ayooluwa Isaiah
2020-11-18 11:13:09 +01:00
parent 4ac2d8c782
commit 4266513640

View File

@@ -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>