diff --git a/modules/blox-tailwind/layouts/_partials/functions/get_icon.html b/modules/blox-tailwind/layouts/_partials/functions/get_icon.html index eaea85e0e..23cd0b09f 100644 --- a/modules/blox-tailwind/layouts/_partials/functions/get_icon.html +++ b/modules/blox-tailwind/layouts/_partials/functions/get_icon.html @@ -43,9 +43,9 @@ ) }} {{- end -}} - {{- $icon := resources.Get $icon_path -}} - {{ if $icon }} - {{ $icon = .Content }} + {{- $icon_resource := resources.Get $icon_path -}} + {{ if $icon_resource }} + {{ $icon = $icon_resource.Content }} {{ else }} {{ $icon = index (index site.Data.icons.brands "icons") "hugo" }} {{ end }}