theme: fix image distortion #395

This commit is contained in:
Sören Weber 2022-11-19 02:01:51 +01:00
parent 03f638e33a
commit 0199aea4ce
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -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") ) ) }}