From 23ef06829a0c6c7112b21f9e98151b81d26edeab Mon Sep 17 00:00:00 2001 From: MaikelChan Date: Sun, 21 May 2023 23:14:11 +0200 Subject: [PATCH] Fixed having multiple galleries in the same page, only works the first one. --- layouts/shortcodes/gallery.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/gallery.html b/layouts/shortcodes/gallery.html index 0a228ddb..19677588 100644 --- a/layouts/shortcodes/gallery.html +++ b/layouts/shortcodes/gallery.html @@ -1,5 +1,5 @@ {{ $time := now.UnixNano }} -{{ $id := delimit (slice "gallery" $time) "-" }} +{{ $id := delimit (slice "gallery" .Ordinal $time) "-" }}
{{ .Inner }}