diff --git a/layouts/partials/bootstrap/icon-grid.html b/layouts/partials/bootstrap/icon-grid.html index d32d1f5..a32e070 100644 --- a/layouts/partials/bootstrap/icon-grid.html +++ b/layouts/partials/bootstrap/icon-grid.html @@ -18,12 +18,16 @@
{{- $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 := "" }}