From 0199aea4ce30b9abd39a72fb19517584b55569ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 19 Nov 2022 02:01:51 +0100 Subject: [PATCH] theme: fix image distortion #395 --- layouts/partials/shortcodes/image.html | 4 ---- 1 file changed, 4 deletions(-) diff --git a/layouts/partials/shortcodes/image.html b/layouts/partials/shortcodes/image.html index 81fc264709..afcdf1e75b 100644 --- a/layouts/partials/shortcodes/image.html +++ b/layouts/partials/shortcodes/image.html @@ -20,10 +20,6 @@ {{- if $dest_url.RawQuery }} {{- $url = printf "%s?%s" $url $dest_url.RawQuery }} {{- end }} - {{- if ne $image.MediaType.SubType "svg" }} - {{- $height = printf "%dpx" $image.Height }} - {{- $width = printf "%dpx" $image.Width }} - {{- end }} {{- end }} {{- if $dest_url.RawQuery }} {{- $classes = (replaceRE "\\s+" " " (replaceRE "," " " ($dest_url.Query.Get "classes") ) ) }}