From 8fa680080031b558ae83d8979d7e8241cb115ecf Mon Sep 17 00:00:00 2001 From: George Cushen Date: Mon, 26 Feb 2024 20:43:18 +0000 Subject: [PATCH] fix: custom icons --- .../blox-tailwind/layouts/partials/functions/get_icon.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/blox-tailwind/layouts/partials/functions/get_icon.html b/modules/blox-tailwind/layouts/partials/functions/get_icon.html index 943739c0..7cec536b 100644 --- a/modules/blox-tailwind/layouts/partials/functions/get_icon.html +++ b/modules/blox-tailwind/layouts/partials/functions/get_icon.html @@ -20,10 +20,10 @@ {{ with index (index site.Data.icons.hb "icons") $name -}} {{ $icon = . }} {{ else }} - {{ with resources.GetMatch (printf "media/icons/%s.svg" (path.Join $pack .name)) }} + {{ with resources.GetMatch (path.Join "media" "icons" $pack (printf "%s.svg" $name)) }} {{ $icon = .Content }} {{else}} - {{ warnf "The icon `%s.svg` was not found in your `assets/media/icons/%s` folder" .name $pack }} + {{ warnf "The icon `%s.svg` was not found in your `assets/media/icons/%s/` folder" $name $pack }} {{ $icon = index (index site.Data.icons.brands "icons") "hugo" }} {{ end }} {{ end }}