Skip to content

Commit

Permalink
fix(icon-grid): add the default icon class name when className is pro…
Browse files Browse the repository at this point in the history
…vided (#76)
  • Loading branch information
razonyang committed Sep 19, 2023
1 parent 992d944 commit b1782f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion layouts/partials/bootstrap/icon-grid.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@
<div class="col">
{{- $icon := "" }}
{{- with .icon }}
{{- $icon = partial "icons/icon" (merge (dict
{{- $iconOpts := (merge (dict
"width" "1.25em"
"height" "1.25em"
"vendor" "bootstrap"
"className" "me-3") .)
}}
{{- if isset . "className" }}
{{- $iconOpts = merge $iconOpts (dict "className" (printf "%s me-3" (.className)))}}
{{- end }}
{{- $icon = partial "icons/icon" $iconOpts }}
{{- end }}
{{- $link := "" }}
{{- $url := "" }}
Expand Down

0 comments on commit b1782f0

Please sign in to comment.