mirror of
https://github.com/thegeeklab/hugo-geekdoc.git
synced 2024-11-05 04:40:40 +00:00
17 lines
611 B
HTML
17 lines
611 B
HTML
{{ if .Inner }}{{ end }}
|
|
{{ $id := .Get 0 }}
|
|
{{ $group := printf "tabs-%s" $id }}
|
|
|
|
<div class="gdoc-tabs">
|
|
{{ range $index, $tab := .Scratch.Get $group }}
|
|
<input type="radio" class="gdoc-tabs__control hidden" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}"
|
|
{{ if not $index }}checked="checked" {{ end }} />
|
|
<label for="{{ printf "%s-%d" $group $index }}" class="gdoc-tabs__label">
|
|
{{ $tab.Name }}
|
|
</label>
|
|
<div class="gdoc-markdown--nested gdoc-tabs__content">
|
|
{{ .Content | markdownify }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|