From 4b9768d2a8a64d7fee072146916cccdb730669fa Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 21 Jan 2024 16:09:46 +1300 Subject: [PATCH] masonry tile for image communities --- app/templates/post/_post_teaser_masonry.html | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/templates/post/_post_teaser_masonry.html b/app/templates/post/_post_teaser_masonry.html index 3fe617ab..043eb568 100644 --- a/app/templates/post/_post_teaser_masonry.html +++ b/app/templates/post/_post_teaser_masonry.html @@ -34,9 +34,19 @@
{% else %} + {% if post.url and (post.url.endswith('.jpg') or post.url.endswith('.webp') or post.url.endswith('.png') or post.url.endswith('.gif')) %} + + + {% else %} + {% endif %} {% endif %}