From 1c4569ac25de46bc5ad8b8963e5ad19c9b11d62f Mon Sep 17 00:00:00 2001 From: Olaf Lipinski <5785856+olipinski@users.noreply.github.com> Date: Sun, 19 Oct 2025 22:22:00 +0200 Subject: [PATCH] Fix shadowing outer scope --- .../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 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 }}