tabs: add title and icon option

This commit is contained in:
Sören Weber 2023-06-06 19:54:12 +02:00
parent f50c362c8e
commit a79f81322a
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
4 changed files with 43 additions and 15 deletions
layouts/partials/shortcodes

View file

@ -54,6 +54,7 @@
{{- with $context }}
<div class="tab-panel" data-tab-group="{{ $groupid }}">
<div class="tab-nav">
<div class="tab-nav-title">{{ if $icon }}<i class="{{ $icon }}"></i>{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | $context.RenderString }}{{ if (not $title) }}&#8203;{{ end }}</div>
{{- range $idx, $tab := $tabs }}
<button
data-tab-item="{{ .itemid }}"