From f52639c9df3f1e30bec180828793c4602231fc40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Wed, 7 Jun 2023 21:04:47 +0200 Subject: [PATCH] tab: format correctly when called as partial #550 --- layouts/partials/shortcodes/tabs.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layouts/partials/shortcodes/tabs.html b/layouts/partials/shortcodes/tabs.html index 8dc0ee5718..5d17300d98 100644 --- a/layouts/partials/shortcodes/tabs.html +++ b/layouts/partials/shortcodes/tabs.html @@ -11,8 +11,8 @@ {{- $tab = merge $tab (dict "title" .name) }} {{- end }} {{- with $tab }} - {{- $color := .color | default $color }} - {{- $style := .style | default $style | default (cond (ne .color "") "filled" "initial") }} + {{- $color := .color | default $color | default "" }} + {{- $style := .style | default $style | default (cond (ne $color "") "filled" "initial") }} {{- $title := .title | default ($style | T) }} {{- $title = trim $title " " }} {{- $icon := .icon | default "" }} @@ -37,7 +37,7 @@ {{- end }} {{- end }} {{- $color = .color | default "" }} -{{- $style = .style | default (cond (ne .color "") "filled" "initial") }} +{{- $style = .style | default (cond (ne $color "") "filled" "initial") }} {{- $title = .title | default ($style | T) }} {{- $title = trim $title " " }} {{- $icon = .icon | default "" }}