Fixed having multiple galleries in the same page, only works the first one.

This commit is contained in:
MaikelChan
2023-05-21 23:14:11 +02:00
parent a387038958
commit 23ef06829a

View File

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