fix(icon): trim white spaces

This commit is contained in:
ZhenShuo Leo
2025-07-25 05:12:51 +08:00
parent ec912c4a92
commit 54a643d703
2 changed files with 12 additions and 10 deletions
+4 -4
View File
@@ -1,6 +1,6 @@
{{ $icon := resources.Get (print "icons/" . ".svg") }}
{{ if $icon }}
{{- $icon := resources.Get (print "icons/" . ".svg") -}}
{{- if $icon -}}
<span class="relative block icon">
{{ $icon.Content | safeHTML }}
{{- $icon.Content | safeHTML -}}
</span>
{{ end }}
{{- end -}}