mirror of
https://github.com/redlib-org/redlib.git
synced 2025-05-14 05:52:53 +00:00
Inline videos/gifs for card view (#107)
* Basic gallery support * Inline videos for card view
This commit is contained in:
parent
cf45d53fdd
commit
7edca18f8d
5 changed files with 16 additions and 1 deletions
|
@ -77,7 +77,7 @@
|
|||
</svg>
|
||||
</a>
|
||||
{% else if post.post_type == "video" || post.post_type == "gif" %}
|
||||
<video class="post_media_video" src="{{ post.media.url }}" controls autoplay loop></video>
|
||||
<video class="post_media_video" src="{{ post.media.url }}" controls autoplay loop><a href={{ post.media.url }}>Video</a></video>
|
||||
{% else if post.post_type == "gallery" %}
|
||||
<div class="gallery">
|
||||
{% for image in post.gallery -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue