tabgroup.html (372B)
1 {{ $align := .Get "align" | default "left" }} 2 {{ $style := .Get "style" | default "markdown" }} 3 {{ $group := .Page.Scratch.Get "tabGroupIndex" | default 0 }} 4 {{ $index := .Page.Scratch.Set "tabElementIndex" 0 }} 5 6 <div class="tabs {{ if eq $style "code" }}tabs-code {{ end }}tabs-{{ $align }}"> 7 {{ .Inner }} 8 </div> 9 10 {{ .Page.Scratch.Set "tabGroupIndex" (add 1 $group) }}