Organisations
diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html
index 9925656..a6fdd00 100644
--- a/layouts/shortcodes/figure.html
+++ b/layouts/shortcodes/figure.html
@@ -1,44 +1,63 @@
-{{ $img := $.Page.Resources.GetMatch (.Get "src") }}
-{{ $file := $.Page.Resources.GetMatch (.Get "link") }}
+{{ $src := $.Page.Resources.GetMatch (.Get "src") }}
+{{ $link := $.Page.Resources.GetMatch (.Get "link") }}
diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html
new file mode 100644
index 0000000..837b159
--- /dev/null
+++ b/layouts/shortcodes/gallery.html
@@ -0,0 +1,30 @@
+
+{{- if not ($.Page.Scratch.Get "figurecount") }}{{ end }}
+{{- $.Page.Scratch.Add "figurecount" 1 }}
+{{ $baseURL := .Site.BaseURL }}
+
+ {{- with (.Get "dir") -}}
+
+ {{- $files := readDir ( print "content/" $.Page.File.Dir . ) }}
+ {{- range $files -}}
+
+ {{- $isimg := lower .Name | findRE "\\.(gif|jpg|jpeg|tiff|png|bmp|webp|avif|jxl)" }}
+ {{- if $isimg }}
+ {{- $caption := .Name | replaceRE "\\..*" "" | humanize }}
+ {{- $linkURL := print $.Page.Permalink ($.Get "dir") "/" .Name | absURL }}
+
+
+
+ {{- end }}
+ {{- end }}
+ {{- else -}}
+
+ {{ .Inner }}
+ {{- end }}
+
+