From cbe5f0ca6b8104f8218b882ea67a71e771b28cd4 Mon Sep 17 00:00:00 2001 From: freamon Date: Sat, 16 Mar 2024 00:09:11 +0000 Subject: [PATCH] Match image size with image source for masonry view --- app/templates/post/_post_teaser_masonry.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/post/_post_teaser_masonry.html b/app/templates/post/_post_teaser_masonry.html index 096add77..7c48629c 100644 --- a/app/templates/post/_post_teaser_masonry.html +++ b/app/templates/post/_post_teaser_masonry.html @@ -14,7 +14,7 @@ {% if post.type == POST_TYPE_LINK %} {% if post.image.medium_url() %} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" width="{{ post.image.width }}" height="{{ post.image.height }}" /> {% elif post.image.source_url %} {{ post.title }} @@ -24,7 +24,7 @@ {% endif %} {% elif post.type == POST_TYPE_IMAGE %} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="lazy" width="{{ post.image.width }}" height="{{ post.image.height }}" /> {% else %} {{ post.image.alt_text if post.image.alt_text else '' }}