{% load wagtailimages_tags my_image_color my %} {% with theme|theme_settings:settings.cms.WebspaceSettings as THEME %} {% image img width-375 format-webp as sm_image_webp %} {% image_color img THEME.bg_color width-375 format-jpeg as sm_image_jpeg %} {% image img width-768 format-webp as md_image_webp %} {% image_color img THEME.bg_color width-768 format-jpeg as md_image_jpeg %} = 2 %}loading="lazy" data-src{% else %}src{% endif %}="{{ md_image_jpeg.url }}" alt="{{ img.title }}" /> {% if block_num >= 2 %} {% endif %} {% endwith %}