Remove width and height in icons

This commit is contained in:
BBaoVanC 2022-04-30 21:19:44 -05:00
parent d41f3facd7
commit effd3a265b
Signed by: bbaovanc
GPG Key ID: 18089E4E3CCF1D3A
1 changed files with 1 additions and 0 deletions

View File

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