mirror of https://github.com/onweru/compose.git

git-hub-9999
09.15.2026 73580d9b0dfe1d257378412d0a97b764080b0c8e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{- $name := .Get 0 | default "Name Me!" -}}
{{- $group := .Page.Store.Get "tabGroupIndex" | default 0 -}}
{{- $index := .Page.Store.Get "tabElementIndex" | default 0 -}}
 
<style>
  .tabs input#tab-{{ $group }}-{{ $index }}:checked ~ .tab-content-{{ $group }}-{{ $index }} {
    display: block;
  }
</style>
 
<input type="radio" class="tab-input" name="tab-select-{{ $group }}" id="tab-{{ $group }}-{{ $index }}" {{ if eq $index 0 }}checked{{ end }}/>
<label for="tab-{{ $group }}-{{ $index }}" class="tab-label">{{ $name }}</label>
<div class="tab-content tab-content-{{ $group }}-{{ $index }}">
  {{ markdownify .Inner }}
</div>
 
{{- .Page.Store.Set "tabElementIndex" (add 1 $index) -}}