From 83eae55276a019cb3b726d11edfc2b3460370a55 Mon Sep 17 00:00:00 2001 From: MaikelChan Date: Tue, 23 May 2023 20:20:07 +0200 Subject: [PATCH] Gallery fixes. - Fixed having multiple galleries in the same page with the same ID, which would cause the galleries after the first one not behaving correctly. - Make sure that all images have finished loading before calling Packery, fixing some image overlapping problems. --- layouts/shortcodes/gallery.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 19677588..a5a9f4d3 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -1,12 +1,11 @@ -{{ $time := now.UnixNano }} -{{ $id := delimit (slice "gallery" .Ordinal $time) "-" }} +{{ $id := delimit (slice "gallery" .Ordinal) "-" }}
{{ .Inner }}