rimgo/views/post.hbs

62 lines
1.3 KiB
Handlebars
Raw Normal View History

2022-01-17 20:23:04 +00:00
<!DOCTYPE html>
<html lang="en">
2022-01-17 20:48:24 +00:00
2022-01-17 20:23:04 +00:00
<head>
2022-02-02 15:48:25 +00:00
<title>
{{#if post.Title}}
{{post.Title}} -
2022-02-02 15:48:25 +00:00
{{/if}}
rimgo
2023-06-10 16:04:29 +00:00
</title>
2022-01-18 23:31:15 +00:00
2022-01-17 20:23:04 +00:00
{{> partials/head }}
</head>
2022-01-17 20:48:24 +00:00
2023-06-10 16:04:29 +00:00
<body class="font-sans text-lg bg-slate-800 text-white">
{{> partials/nav }}
2022-01-17 20:48:24 +00:00
<section class="my-4 w-full flex flex-col items-center">
{{> partials/searchBar }}
</section>
2022-08-05 00:14:17 +00:00
<header>
2023-06-10 16:04:29 +00:00
<h1 class="text-3xl font-bold">{{post.Title}}</h1>
<p>{{post.CreatedAt}}</p>
2022-08-05 00:14:17 +00:00
</header>
2022-08-05 00:14:17 +00:00
<main>
<div class="flex flex-col sm:flex-row my-4 w-full justify-between">
{{#noteq next ""}}
<a href="{{next}}" class="self-end">
<button class="p-2 rounded-lg bg-slate-600">Next &gt;</button>
</a>
{{/noteq}}
2022-01-17 22:11:33 +00:00
</div>
<div class="flex flex-center flex-col break-words">
2022-10-13 21:29:05 +00:00
{{#each post.Media}}
{{#if this.Title}}
2023-06-10 16:04:29 +00:00
<h4 class="font-bold">{{this.Title}}</h4>
2022-10-13 21:29:05 +00:00
{{/if}}
2022-01-18 00:25:49 +00:00
2022-01-18 21:45:57 +00:00
{{#equal this.Type "image"}}
2023-06-10 16:04:29 +00:00
<img class="my-2 max-h-96 object-contain" src="{{this.Url}}" loading="lazy">
2022-01-18 21:45:57 +00:00
{{/equal}}
{{#equal this.Type "video"}}
2023-06-10 16:04:29 +00:00
<video class="my-2 max-h-96 object-contain" controls loop>
2022-01-18 21:45:57 +00:00
<source type="{{this.MimeType}}" src="{{this.Url}}" />
</video>
{{/equal}}
2022-10-13 21:29:05 +00:00
{{#if this.Description}}
<p>{{{this.Description}}}</p>
{{/if}}
{{/each}}
2022-10-13 21:29:05 +00:00
</div>
2022-08-05 00:14:17 +00:00
</main>
2022-02-21 17:14:00 +00:00
2022-01-17 22:11:33 +00:00
{{> partials/footer }}
2022-01-17 20:23:04 +00:00
</body>
2022-01-17 20:48:24 +00:00
</html>