From e6215f84bf2cab0bbd8bb0a42ddae0ee6de3cfd6 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Wed, 11 Nov 2026 19:57:38 +0100 Subject: Vendor responsive image plugin locally This adds the responsive-image plugin directly to the project, including its source code, documentation, and tests, allowing it to be maintained locally. It also configures responsive image sizes, updates gallery images to use srcset, and preserves original image URLs for full-resolution viewing. Markdown images gain lazy loading while retaining compatibility with the existing image viewer. --- templates/blocks/gallery-image.html | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'templates/blocks') diff --git a/templates/blocks/gallery-image.html b/templates/blocks/gallery-image.html index 44a8e93..b786bbc 100644 --- a/templates/blocks/gallery-image.html +++ b/templates/blocks/gallery-image.html @@ -1,9 +1,15 @@ {% set image = record.attachments.get(this["image"]) %} {% if image %} - {{ this[ + {% set responsive = responsive_image(image).attrs %} + + {{ this[ + {% endif %} -- cgit v1.3.1