From 78b04e847e56aa696e3c4204ceaee268bb9c542b Mon Sep 17 00:00:00 2001 From: Ivaylo Ivanov Date: Tue, 25 Mar 2025 15:27:13 +0100 Subject: [PATCH] Add image gallery --- layouts/shortcodes/image-gallery.html | 37 +++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 layouts/shortcodes/image-gallery.html diff --git a/layouts/shortcodes/image-gallery.html b/layouts/shortcodes/image-gallery.html new file mode 100644 index 0000000..76b7e92 --- /dev/null +++ b/layouts/shortcodes/image-gallery.html @@ -0,0 +1,37 @@ +{{/* https://hugocodex.org/add-ons/image-gallery/ */}} +{{/* +Add this to your config yaml to serve images from `static/albums`` + +module: + mounts: + source: static/albums + target: assets/albums + + +*/}} + + +{{ $dir := string .Params.gallery_dir }} +