webpage/themes/hugo-book/layouts/shortcodes/tab.html
kekskurse 27e6a14105 init
2024-11-26 23:25:09 +01:00

9 lines
341 B
HTML

{{- $group := printf "tabs-%d" .Parent.Ordinal -}}
{{- $tab := printf "%s-%d" $group .Ordinal }}
<input type="radio" class="toggle" name="{{ $group }}" id="{{ $tab }}" {{ if not .Ordinal }}checked="checked"{{ end }} />
<label for="{{ $tab }}">
{{- .Get 0 -}}
</label>
<div class="book-tabs-content markdown-inner">
{{- .Inner -}}
</div>