mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-05-31 05:54:12 +00:00
tabs: add title and icon option #552
This commit is contained in:
parent
f50c362c8e
commit
a79f81322a
4 changed files with 43 additions and 15 deletions
layouts/partials/shortcodes
|
@ -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) }}​{{ end }}</div>
|
||||
{{- range $idx, $tab := $tabs }}
|
||||
<button
|
||||
data-tab-item="{{ .itemid }}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue