New way to generate UIDs.

This commit is contained in:
MaikelChan committed 2024-01-13 01:24:45 +01:00
1 parent 08305fe2f7
commit 9cfc07565c
7 files changed
+19 -7

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
{{ $random := delimit (shuffle (seq 1 9)) "" }}
{{ $id := delimit (slice "gallery" $random now.UnixNano) "-" }}
{{ $id := delimit (slice "gallery" (partial "functions/uid.html" .)) "-" }}
<div id="{{ $id }}" class="gallery">
{{ .Inner }}