New way to generate UIDs.

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

View File

@@ -1,4 +1,4 @@
{{ $id := delimit (slice "carousel" .Ordinal now.UnixNano) "-" }}
{{ $id := delimit (slice "carousel" (partial "functions/uid.html" .)) "-" }}
{{ $aspect := default "16-9" (.Get "aspectRatio") }}
{{ $images := .Page.Resources.Match (.Get "images") }}
{{ $interval := default "2000" (.Get "interval") }}