#803, use page-level IDs for shortcodes

This commit is contained in:
Alex Shpak
2026-05-16 23:47:34 +02:00
parent 54f9ceeeee
commit fe5f41f15d
7 changed files with 20 additions and 11 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $group := printf "tabs-%v" .Parent.Ordinal -}}
{{- $group := printf "tabs-%v" (.Parent.Store.Get "id") -}}
{{- $tab := printf "%s-%d" $group .Ordinal -}}
<input type="radio" class="toggle" name="{{ $group }}" id="{{ $tab }}" {{ if not .Ordinal }}checked="checked"{{ end }} />
{{- /* remove whitespaces */ -}}