2019-05-22 12:37:31 +00:00
|
|
|
{{ if .Inner }}{{ end }}
|
|
|
|
{{ $id := .Get 0 }}
|
|
|
|
{{ $group := printf "tabs-%s" $id }}
|
|
|
|
|
2019-05-23 15:48:30 +00:00
|
|
|
<div class="book-tabs">
|
|
|
|
{{ range $index, $tab := .Scratch.Get $group }}
|
2019-08-29 04:00:00 +00:00
|
|
|
<input type="radio" class="book-tabs-radio" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} />
|
2019-05-23 15:48:30 +00:00
|
|
|
<label for="{{ printf "%s-%d" $group $index }}">
|
|
|
|
{{ $tab.Name }}
|
|
|
|
</label>
|
|
|
|
<div class="book-tabs-content markdown-inner">
|
|
|
|
{{ .Content | markdownify }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|