From 9bb2b0c41c06e7242bec41d63cb9e094442c4e2f Mon Sep 17 00:00:00 2001 From: BBaoVanC Date: Sat, 9 Oct 2021 19:31:38 -0500 Subject: [PATCH] Correctly replace the name for svgs --- layouts/partials/icon.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html index 889dc27..4333241 100644 --- a/layouts/partials/icon.html +++ b/layouts/partials/icon.html @@ -1,5 +1,5 @@ {{ $icon_resource := resources.Get (printf "feather/icons/%s.svg" .) }} {{ $icon := $icon_resource.Content }} {{ $icon = replaceRE `` `{{ . }} icon` $icon }} +{{ $icon = replaceRE `` (printf `%s icon` .) $icon }} {{ $icon | safeHTML }}