summaryrefslogtreecommitdiff
path: root/templates/blocks/gallery-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/blocks/gallery-image.html')
-rw-r--r--templates/blocks/gallery-image.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/blocks/gallery-image.html b/templates/blocks/gallery-image.html
new file mode 100644
index 0000000..44a8e93
--- /dev/null
+++ b/templates/blocks/gallery-image.html
@@ -0,0 +1,9 @@
+{% set image = record.attachments.get(this["image"]) %}
+{% if image %}
+ <img src="{{ image | url }}"
+ width="{{ image.width }}"
+ height="{{ image.height }}"
+ alt="{{ this["alt"] }}"
+ loading="lazy"
+ decoding="async">
+{% endif %}