mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2024-12-22 12:13:19 -06:00
Remove whitespace and newlines in icon.html
This commit is contained in:
parent
ae37e587a3
commit
24979c3c37
@ -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 -}}
|
||||||
|
Loading…
Reference in New Issue
Block a user