mirror of https://github.com/luizdepra/hugo-coder.git

Codruț Constantin Gușoi
29.43.2022 5e4e500cdfe00babb29eb7aeef18c9d0ec3c5a47
1
2
3
4
5
6
7
8
9
10
{{ $align := .Get "align" | default "left" }}
{{ $style := .Get "style" | default "markdown" }}
{{ $group := .Page.Scratch.Get "tabGroupIndex" | default 0 }}
{{ $index := .Page.Scratch.Set "tabElementIndex" 0 }}
 
<div class="tabs {{ if eq $style "code" }}tabs-code {{ end }}tabs-{{ $align }}">
  {{ .Inner }}
</div>
 
{{ .Page.Scratch.Set "tabGroupIndex" (add 1 $group) }}