diff --git a/layouts/partials/icon.html b/layouts/partials/icon.html
index 1637a54..f5003c2 100644
--- a/layouts/partials/icon.html
+++ b/layouts/partials/icon.html
@@ -2,4 +2,5 @@
{{- $icon := $icon_resource.Content -}}
{{- $icon = replaceRE `` .) $icon -}}
+{{- $icon = replaceRE `(width|height)="[0-9]*"` "" $icon -}}
{{- $icon | safeHTML -}}