mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-10-30 07:45:54 +00:00
feat: add tabs
This commit is contained in:
11 files changed
+441
No files matched your search
@@ -0,0 +1,5 @@
|
||||
{{- $index := .Parent.Scratch.Get "tab-index" | default 0 -}}
|
||||
{{- .Parent.Scratch.Set "tab-index" (add 1 $index) -}}
|
||||
<div class="tab__panel {{ if eq $index 0 }}tab--active{{ end }}" data-tab-index="{{ $index }}">
|
||||
{{ .InnerDeindent | strings.TrimSpace | .Page.RenderString }}
|
||||
</div>
|
||||
Reference in new issue
Block a user