mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-02-11 08:03:46 +00:00
Initial users support
This commit is contained in:
32
views/partials/post.hbs
Normal file
32
views/partials/post.hbs
Normal file
@@ -0,0 +1,32 @@
|
||||
<a href="{{Link}}">
|
||||
<div class="post">
|
||||
{{#equal Cover.Type "video"}}
|
||||
<video fullscreen controls loop poster="/{{Cover.Id}}.webp" preload="none" width="100%" height="100%">
|
||||
<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>
|
||||
<div class="post__meta">
|
||||
<p>
|
||||
<span class="material-icons-outlined">
|
||||
arrow_upward
|
||||
</span>
|
||||
{{Points}}
|
||||
</p>
|
||||
<p>
|
||||
<span class="material-icons-outlined">
|
||||
comment
|
||||
</span>
|
||||
{{Comments}}
|
||||
<p>
|
||||
<span class="material-icons-outlined">
|
||||
visibility
|
||||
</span>
|
||||
{{Views}}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
Reference in New Issue
Block a user