From 4813237b4368643231723859112c0fdaa3f5025d Mon Sep 17 00:00:00 2001
From: Luca Beltrame <lbeltrame@kde.org>
Date: Sat, 27 Feb 2021 01:13:47 +0100
Subject: [PATCH] New shortcode, multithumb, to display galleries

---
 layouts/shortcodes/multithumb.html | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 layouts/shortcodes/multithumb.html

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