Files
hugo-book/layouts/_shortcodes/tabs.html
2026-05-16 23:47:34 +02:00

12 lines
333 B
HTML

{{- .Store.Set "id" (partial "docs/text/shortcode-id" .) -}}
{{- $attributes := partial "docs/text/mapper" (dict
"attributes" (cond .IsNamedParams .Params dict)
"merge" (dict
"class" "book-tabs"
)
) -}}
<div {{ partial "docs/html-attrs" $attributes | safeHTMLAttr }}>
{{- .Inner -}}
</div>
{{- /* remove whitespaces */ -}}