From ea3310872ff605f85ef979816c08c0d05691bc42 Mon Sep 17 00:00:00 2001 From: HEIGE-PCloud Date: Fri, 26 Jan 2024 05:19:40 +0000 Subject: [PATCH] fix: Image deformity in chrome v121 --- layouts/partials/plugin/image.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/plugin/image.html b/layouts/partials/plugin/image.html index 1ca3600bb..5713df055 100644 --- a/layouts/partials/plugin/image.html +++ b/layouts/partials/plugin/image.html @@ -42,7 +42,7 @@ loading="{{ $loading }}" src="{{ $src | safeURL }}" srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x" - sizes="auto" + {{/* sizes="auto" https://github.com/HEIGE-PCloud/DoIt/issues/1165 */}} alt="{{ $alt }}"{{ with $height }} height="{{ . }}" {{ end }}{{ with $width }} width="{{ . }}" {{ end }}> {{- else -}} @@ -51,7 +51,7 @@ loading="{{ $loading }}" src="{{ $src | safeURL }}" srcset="{{ $small | safeURL }}, {{ $src | safeURL }} 1.5x, {{ $large | safeURL }} 2x" - sizes="auto" + {{/* sizes="auto" https://github.com/HEIGE-PCloud/DoIt/issues/1165 */}} alt="{{ $alt }}" title="{{ .Title | default $alt }}"{{ with $height }} height="{{ . }}" {{ end }} {{ with $width }} width="{{ . }}" {{ end }}> {{- end -}}