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
No known key found for this signature in database
GPG key ID: B2CE398C279239EC

View file

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