9 lines
341 B
HTML
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>
|