From cdee5c89972840de7485e8e94133861305856c18 Mon Sep 17 00:00:00 2001 From: Olaf Lipinski <5785856+olipinski@users.noreply.github.com> Date: Tue, 21 Oct 2025 22:24:13 +0200 Subject: [PATCH] fix: regression with custom icon rendering (#3279) During previous refactoring, the {{with}} was refactored to {{if}} leading to missing icon resource context, and hence custom icons were no longer rendering. Fixes #3278 --- .../blox-tailwind/layouts/_partials/functions/get_icon.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/blox-tailwind/layouts/_partials/functions/get_icon.html b/modules/blox-tailwind/layouts/_partials/functions/get_icon.html index eaea85e0..23cd0b09 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 }}