rimgo/views/partials/post.hbs

14 lines
488 B
Handlebars
Raw Normal View History

2022-01-28 01:41:10 +00:00
<a href="{{Link}}">
2023-06-10 16:04:29 +00:00
<div class="bg-slate-600 rounded-lg">
2022-01-28 01:41:10 +00:00
{{#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}}
2023-06-10 16:04:29 +00:00
<p class="m-2 text-ellipsis whitespace-nowrap overflow-hidden">{{Title}}</p>
2022-01-28 01:41:10 +00:00
</div>
</a>