From df522582fb168d3851bb56e3075e38097f8be8c2 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 17 Mar 2024 16:22:20 +1300 Subject: [PATCH] try bagguettebox script for a lightbox --- app/templates/post/_post_teaser_masonry.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/templates/post/_post_teaser_masonry.html b/app/templates/post/_post_teaser_masonry.html index c5f79d65..ad9df74f 100644 --- a/app/templates/post/_post_teaser_masonry.html +++ b/app/templates/post/_post_teaser_masonry.html @@ -13,24 +13,24 @@
{% if post.type == POST_TYPE_LINK %} {% if post.image.medium_url() %} - {{ post.image.alt_text if post.image.alt_text else '' }} + loading="{{ 'lazy' if low_bandwidth else 'eager' }}" width="{{ post.image.width }}" height="{{ post.image.height }}" /> {% elif post.image.source_url %} - {{ post.title }} + {{ post.title }} {% else %} - {{ post.title }} {% endif %} {% elif post.type == POST_TYPE_IMAGE %} - {{ post.image.alt_text if post.image.alt_text else '' }} + loading="{{ 'lazy' if low_bandwidth else 'eager' }}" width="{{ post.image.width }}" height="{{ post.image.height }}" /> {% else %} {{ post.image.alt_text if post.image.alt_text else '' }} + alt="{{ post.image.alt_text if post.image.alt_text else '' }}" loading="{{ 'lazy' if low_bandwidth else 'eager' }}" /> {% endif %}