mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2025-04-08 14:55:41 +00:00
Hotfix: tabs: improve unique id serialization
This commit is contained in:
parent
fb701f6f7f
commit
645c868cec
@ -1,4 +1,4 @@
|
||||
{{- $group := printf "tabs-%s" (default .Parent.Ordinal (.Parent.Get 0)) -}}
|
||||
{{- $group := printf "tabs-%v" (default .Parent.Ordinal (.Parent.Get 0)) -}}
|
||||
{{- $tab := printf "%s-%d" $group .Ordinal }}
|
||||
<input type="radio" class="toggle" name="{{ $group }}" id="{{ $tab }}" {{ if not .Ordinal }}checked="checked"{{ end }} />
|
||||
<label for="{{ $tab }}">
|
||||
|
Loading…
Reference in New Issue
Block a user