From 6d9bf58fae4074444927ce17e2b82323ed00d72f Mon Sep 17 00:00:00 2001 From: Serhii Polishchuk Date: Tue, 19 Dec 2023 23:25:35 +0100 Subject: [PATCH] Loop over supported images, excluding avif --- layouts/shortcodes/gallery.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 6532a62..1421558 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -85,11 +85,12 @@ --> {{ $galleryId := (printf "gallery-%v-%v" .Page.File.UniqueID .Ordinal)}} {{ $galleryWrapperId := (printf "gallery-%v-%v-wrapper" .Page.File.UniqueID .Ordinal)}} +{{ $supportedFormats := .Site.Params.supportedImageThumbnails | default (slice "jpeg" "png" "tiff" "bmp" "gif") }}