From b4387bf01ae5464ff26db2ee36ee41182eff1575 Mon Sep 17 00:00:00 2001
From: Luca Beltrame <lbeltrame@kde.org>
Date: Sun, 24 Apr 2022 11:29:43 +0200
Subject: [PATCH] I can't quite debug this stuff: works locally

---
 layouts/shortcodes/multithumb.html | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/layouts/shortcodes/multithumb.html b/layouts/shortcodes/multithumb.html
index 0d19d05..3787feb 100644
--- a/layouts/shortcodes/multithumb.html
+++ b/layouts/shortcodes/multithumb.html
@@ -1,11 +1,9 @@
 <div class="gallery flex justify-center">
 {{ range $param := .Params }}
-  {{ $image :=  resources.GetMatch ($param) }}
-  {{ $size := "x350" }}
-  {{ $options := printf "%s %s %s" $size "png q90" "Box"}}
-  {{ $imagethumbnail := $image.Resize $options}}
-  <a href="{{ $image.RelPermalink }}">
-    <img class="thumbnail w6 pa1 mr1" src="{{ $imagethumbnail.RelPermalink }}" style="width: 95% !important;" />
+  {{ $image := resources.GetMatch ($param) }}
+  {{ $processed := $image.Resize ( printf "x%d %s %s %s" 350 "jpg" "q90" "Box" ) }}
+      <a href="{{ $image.RelPermalink }}">
+        <img class="thumbnail w6 pa1 mr1" src="{{ $processed.RelPermalink }}" style="width: 95% !important;" />
   </a>
 {{ end }}
 </div>