Rename icon_code partial to icon_impl

Fixes #126
This commit is contained in:
2025-12-24 01:42:45 -06:00
parent d6c8dd65de
commit ee1ba12df5
2 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
{{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
{{- $icon := $icon_resource.Content -}}
{{- $icon = replaceRE `<svg` (printf `<svg class="icon icon-%s"` .) $icon -}}
{{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
{{- $icon | safeHTML -}}