From fcbcd464593a44dd372770cf3e274b1f876836de Mon Sep 17 00:00:00 2001 From: Ali Hamrani Date: Sat, 5 Oct 2024 08:57:58 +0330 Subject: [PATCH 1/3] fix faq --- layouts/about/faq.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/about/faq.html b/layouts/about/faq.html index 0a67312..9b5398d 100644 --- a/layouts/about/faq.html +++ b/layouts/about/faq.html @@ -55,7 +55,7 @@

{{ range $i,$group := .Site.Data.faq }} - {{ $group_id := lower $group.title }} + {{ $group_id := $group.title }}
{{ range $j, $item := $group.items }}
Date: Sat, 5 Oct 2024 09:23:28 +0330 Subject: [PATCH 2/3] lower group_id --- layouts/about/faq.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/about/faq.html b/layouts/about/faq.html index 9b5398d..c664a85 100644 --- a/layouts/about/faq.html +++ b/layouts/about/faq.html @@ -49,13 +49,13 @@

+ name="groups" aria-label="{{ $titleKey }}" {{ if eq $i 0 }}checked{{ end }} aria-value="{{ lower $item.title }}" />

{{ end }}
{{ range $i,$group := .Site.Data.faq }} - {{ $group_id := $group.title }} + {{ $group_id := lower $group.title }}
{{ range $j, $item := $group.items }}
Date: Sat, 5 Oct 2024 10:14:53 +0330 Subject: [PATCH 3/3] change aria-value to data-pactus-value --- layouts/about/faq.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/about/faq.html b/layouts/about/faq.html index c664a85..2baddb1 100644 --- a/layouts/about/faq.html +++ b/layouts/about/faq.html @@ -49,7 +49,7 @@

+ name="groups" aria-label="{{ $titleKey }}" {{ if eq $i 0 }}checked{{ end }} data-pcatus-value="{{ lower $item.title }}" />

{{ end }}
@@ -111,9 +111,9 @@

{ const value = $("input[type=radio][name=groups]:checked").attr( - "aria-value", + "data-pcatus-value", ); - if ($(this).attr("aria-value") !== value) { + if ($(this).attr("data-pcatus-value") !== value) { $("#grouds-bundler div.join").hide(); $(`#${value}`).fadeIn(); }