rimgo/views/search.hbs

36 lines
739 B
Handlebars
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<title>{{query}} - rimgo</title>
{{> partials/head }}
</head>
<body class="font-sans text-lg bg-slate-800 text-white">
{{> partials/nav }}
<section class="my-4 w-full flex flex-col items-center">
{{> partials/searchBar }}
</section>
<main>
<div class="posts">
{{#each results}}
{{> partials/result }}
{{/each}}
</div>
2023-08-10 16:00:42 +00:00
<div class="flex justify-between mt-4 font-bold">
{{#noteq page "0"}}
2023-08-10 16:00:42 +00:00
<a href="/search?q={{query}}&page={{prevPage}}">Previous page</a>
{{/noteq}}
<p>Page {{nextPage}}</p>
2023-08-10 16:00:42 +00:00
<a href="/search?q={{query}}&page={{nextPage}}">Next page</a>
</div>
</main>
{{> partials/footer }}
</body>
</html>