Initial Commit
This commit is contained in:
10
themes/hugo-coder/layouts/shortcodes/tabgroup.html
Normal file
10
themes/hugo-coder/layouts/shortcodes/tabgroup.html
Normal file
@ -0,0 +1,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) }}
|
Reference in New Issue
Block a user