mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-23 07:47:54 +00:00
theme: fix image distortion #395
This commit is contained in:
parent
03f638e33a
commit
0199aea4ce
1 changed files with 0 additions and 4 deletions
|
@ -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") ) ) }}
|
||||
|
|
Loading…
Reference in a new issue