mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-27 22:36:06 +00:00
updated logic for unique ids in shortcodes
This commit is contained in:
1 parent
dc1ff0f998
commit
96fdb6db8b
4 files changed
+4
-6
No files matched your search
@@ -1,5 +1,4 @@
|
||||
{{ $time := now.UnixNano }}
|
||||
{{ $id := delimit (slice "gallery" $time) "-" }}
|
||||
{{ $id := delimit (slice "carousel" .Ordinal now.UnixNano) "-" }}
|
||||
{{ $aspect := default "16-9" (.Get "aspectRatio") }}
|
||||
{{ $images := .Page.Resources.Match (.Get "images") }}
|
||||
{{ $interval := default "2000" (.Get "interval") }}
|
||||
|
||||
Reference in new issue
Block a user