rimgo/views/partials/post.hbs

27 lines
828 B
Handlebars
Raw Normal View History

2022-01-28 01:41:10 +00:00
<a href="{{Link}}">
<div class="post">
{{#equal Cover.Type "video"}}
2022-02-02 15:22:48 +00:00
<video controls loop poster="/{{Cover.Id}}.webp" preload="none" width="100%" height="100%">
2022-01-28 01:41:10 +00:00
<source src="{{Cover.Url}}" type="video/mp4" />
</video>
{{/equal}}
{{#equal Cover.Type "image"}}
<img src="{{Cover.Url}}" loading="lazy" width="100%" height="100%">
{{/equal}}
<p class="post__title">{{Title}}</p>
2022-12-21 00:35:48 +00:00
<div class="flex gap-2 p-2">
<div>
2022-10-13 22:26:08 +00:00
<img class="icon" src="/static/icons/chevron-up.svg" alt="Points">
2022-01-28 01:41:10 +00:00
{{Points}}
2022-12-21 00:35:48 +00:00
</div>
<div>
2022-10-13 22:26:08 +00:00
<img class="icon" src="/static/icons/message-square.svg" alt="Comments">
2022-01-28 01:41:10 +00:00
{{Comments}}
2022-12-21 00:35:48 +00:00
</div>
<div>
2022-10-13 22:26:08 +00:00
<img class="icon" src="/static/icons/eye.svg" alt="Views">
2022-01-28 01:41:10 +00:00
{{Views}}
2022-12-21 00:35:48 +00:00
</div>
2022-01-28 01:41:10 +00:00
</div>
</div>
</a>