diff --git a/layouts/shortcodes/carousel.html b/layouts/shortcodes/carousel.html index 742bb747..1f424a1d 100644 --- a/layouts/shortcodes/carousel.html +++ b/layouts/shortcodes/carousel.html @@ -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") }} diff --git a/layouts/shortcodes/chart.html b/layouts/shortcodes/chart.html index 98ae8fa7..82c92aad 100644 --- a/layouts/shortcodes/chart.html +++ b/layouts/shortcodes/chart.html @@ -1,5 +1,5 @@ +{{ $id := delimit (slice "chart" .Ordinal now.UnixNano) "-" }}