From c47af190de1d8de1252a8105c50773214eee8b95 Mon Sep 17 00:00:00 2001 From: razonyang Date: Fri, 8 Mar 2024 23:57:08 +0800 Subject: [PATCH] fix(accordion): make id to be unique in the case of using multiple accordions on one page --- layouts/partials/bootstrap/accordion.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/bootstrap/accordion.html b/layouts/partials/bootstrap/accordion.html index 03a268f..4a0077f 100644 --- a/layouts/partials/bootstrap/accordion.html +++ b/layouts/partials/bootstrap/accordion.html @@ -16,7 +16,7 @@ {{- else if eq $items false }} {{- warnf `[bootstrap][accordion] the data file is missing: %s.` $data }} {{- else }} - {{- $id := printf "accordion-%d-%s" .Ordinal $data | anchorize }} + {{- $id := printf "accordion-%d-%s" time.Now.UnixMicro $data | anchorize }}