Remove whitespace and newlines in icon.html

This commit is contained in:
BBaoVanC 2021-10-29 17:16:41 -05:00
parent ae37e587a3
commit 24979c3c37
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{{ $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) }} {{- $icon_resource := resources.Get (printf "jam/icons/%s.svg" .) -}}
{{ $icon := $icon_resource.Content }} {{- $icon := $icon_resource.Content -}}
{{ $icon = replaceRE `<svg` `<svg class="icon"` $icon }} {{- $icon = replaceRE `<svg` `<svg class="icon"` $icon -}}
{{ $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon }} {{- $icon = replaceRE `</svg>` (printf `<title>%s icon</title></svg>` .) $icon -}}
{{ $icon | safeHTML }} {{- $icon | safeHTML -}}