You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
621 B
HTML
15 lines
621 B
HTML
{{ $content := chomp .InnerDeindent | markdownify }}
|
|
{{ $tabcount := .Page.Scratch.Get "paige-tabs" | default 0 }}
|
|
|
|
{{ if not $content }}
|
|
{{ errorf "layouts/shortcodes/paige/tab/pane.html: no content" }}
|
|
{{ end }}
|
|
|
|
{{ .Page.Scratch.Add "paige-tabs-pane" 1 }}
|
|
|
|
{{ $panecount := .Page.Scratch.Get "paige-tabs-pane" }}
|
|
|
|
{{ $active := eq $panecount 1 }}
|
|
|
|
<div aria-labelledby="paige-tabs-{{ $tabcount }}-button-{{ $panecount }}" class="{{ if $active }} active {{ end }} fade {{ if $active }} show {{ end }} tab-pane" id="paige-tabs-{{ $tabcount }}-pane-{{ $panecount }}" role="tabpanel" tabindex="0">{{ $content }}</div>
|