Skip to content

Commit

Permalink
tab: format correctly when called as partial matcornic#550
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Jun 7, 2023
1 parent a5e6a30 commit f52639c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/partials/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 "" }}
Expand All @@ -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 "" }}
Expand Down

0 comments on commit f52639c

Please sign in to comment.