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.
17 lines
762 B
HTML
17 lines
762 B
HTML
{{ $content := chomp .Inner | markdownify }}
|
|
{{ $tabcount := .Page.Scratch.Get "paige-tabs" | default 0 }}
|
|
|
|
{{ if not $content }}
|
|
{{ errorf "layouts/shortcodes/paige/tab/button.html: no content" }}
|
|
{{ end }}
|
|
|
|
{{ .Page.Scratch.Add "paige-tabs-button" 1 }}
|
|
|
|
{{ $buttoncount := .Page.Scratch.Get "paige-tabs-button" }}
|
|
|
|
{{ $active := eq $buttoncount 1 }}
|
|
|
|
<li class="nav-item" role="presentation">
|
|
<button aria-controls="paige-tabs-{{ $tabcount }}-pane-{{ $buttoncount }}" aria-selected="{{ $active }}" class="{{ if $active }} active {{ end }} nav-link" data-bs-target="#paige-tabs-{{ $tabcount }}-pane-{{ $buttoncount }}" data-bs-toggle="tab" id="paige-tabs-{{ $tabcount }}-button-{{ $buttoncount }}" role="tab" type="button">{{ $content }}</button>
|
|
</li>
|