From 77d5d5e934711f834de115bc0bd62bc97101d3fd Mon Sep 17 00:00:00 2001 From: razonyang Date: Thu, 11 Jan 2024 11:35:21 +0800 Subject: [PATCH] fix(accordion): escape invalid chars --- layouts/partials/bootstrap/accordion.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/bootstrap/accordion.html b/layouts/partials/bootstrap/accordion.html index 599e3cc..5785abe 100644 --- a/layouts/partials/bootstrap/accordion.html +++ b/layouts/partials/bootstrap/accordion.html @@ -25,14 +25,14 @@ {{- else if eq $items false }} {{- warnf `[bootstrap][accordion] the data file is missing: %s.` $data }} {{- else }} - {{- $id := printf "accordion-%d-%s" .Ordinal $data }} + {{- $id := printf "accordion-%d-%s" .Ordinal $data | anchorize }}
{{- $first := true }} {{- range $name, $item := sort $items "weight" }} {{- $show := cond (isset . "show") .show $first }} - {{- $itemID := printf "%s-%d" $id $name }} + {{- $itemID := printf "%s-%d" $id $name | anchorize }}