Merge pull request #731 from MaikelChan/fix-multiple-galleries

Fixed having multiple galleries in the same page, only works the first one
This commit is contained in:
Nuno Coração 2023-05-23 12:26:32 +01:00 committed by GitHub
commit 2d0f9852d8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{{ $time := now.UnixNano }} {{ $time := now.UnixNano }}
{{ $id := delimit (slice "gallery" $time) "-" }} {{ $id := delimit (slice "gallery" .Ordinal $time) "-" }}
<div id="{{ $id }}"> <div id="{{ $id }}">
{{ .Inner }} {{ .Inner }}