rimgo/views/tag.hbs

59 lines
1.5 KiB
Handlebars
Raw Normal View History

2022-02-18 21:56:56 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{{tag.Display}} - rimgo</title>
{{> partials/head }}
</head>
2023-06-10 16:04:29 +00:00
<body class="font-sans text-lg bg-slate-800 text-white">
{{> partials/nav }}
2022-02-18 21:56:56 +00:00
<section class="my-4 w-full flex flex-col items-center">
{{> partials/searchBar }}
</section>
2023-06-10 16:04:29 +00:00
<header class="p-4 rounded-xl text-white mb-4" style="background-image: url('{{tag.Background}}');">
<div class="flex flex-col items-center justify-center text-center">
<h2 class="text-2xl font-bold">{{tag.Display}}</h2>
<p>{{tag.PostCount}} posts</p>
2022-02-18 21:56:56 +00:00
</div>
2023-06-10 16:04:29 +00:00
<div class="flex flex-col">
{{#equal tag.Sort "popular"}}
<a href="?sort=popular"><b>Popular</b></a>
<a href="?sort=newest">Newest</a>
<a href="?sort=best">Best</a>
{{/equal}}
{{#equal tag.Sort "newest"}}
<a href="?sort=popular">Popular</a>
<a href="?sort=newest"><b>Newest</b></a>
<a href="?sort=best">Best</a>
{{/equal}}
{{#equal tag.Sort "best"}}
<a href="?sort=popular">Popular</a>
<a href="?sort=newest">Newest</a>
<a href="?sort=best"><b>Best</b></a>
{{/equal}}
</div>
</header>
<main>
2022-02-18 21:56:56 +00:00
<div class="posts">
{{#each tag.Posts}}
{{> partials/post }}
{{/each}}
</div>
2023-06-10 16:04:29 +00:00
<div class="mt-4 font-bold">
2022-02-18 21:56:56 +00:00
{{#if displayPrev}}
<a href="{{channel.RelUrl}}?page={{prevPage}}">Previous page</a>
{{/if}}
<a href="{{channel.RelUrl}}?page={{nextPage}}">Next page</a>
</div>
</main>
{{> partials/footer }}
</body>
</html>