Add pages for search

This commit is contained in:
video-prize-ranch
2023-08-10 16:00:42 +00:00
parent 043150d85b
commit 498e9282e9
3 changed files with 20 additions and 10 deletions

View File

@@ -20,6 +20,14 @@
{{> partials/result }}
{{/each}}
</div>
<div class="flex justify-between mt-4 font-bold">
{{#if displayPrev}}
<a href="/search?q={{query}}&page={{prevPage}}">Previous page</a>
{{/if}}
<p>Page {{page}}</p>
<a href="/search?q={{query}}&page={{nextPage}}">Next page</a>
</div>
</main>
{{> partials/footer }}