mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 15:31:52 +00:00
New way to generate UIDs.
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user