mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
tab: format correctly when called as partial #550
This commit is contained in:
parent
a5e6a30493
commit
f52639c9df
1 changed files with 3 additions and 3 deletions
|
@ -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 "" }}
|
||||
|
|
Loading…
Reference in a new issue