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

View File

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