mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-02-20 02:30:09 +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 }}
|
{{- if $dest_url.RawQuery }}
|
||||||
{{- $url = printf "%s?%s" $url $dest_url.RawQuery }}
|
{{- $url = printf "%s?%s" $url $dest_url.RawQuery }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if ne $image.MediaType.SubType "svg" }}
|
|
||||||
{{- $height = printf "%dpx" $image.Height }}
|
|
||||||
{{- $width = printf "%dpx" $image.Width }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if $dest_url.RawQuery }}
|
{{- if $dest_url.RawQuery }}
|
||||||
{{- $classes = (replaceRE "\\s+" " " (replaceRE "," " " ($dest_url.Query.Get "classes") ) ) }}
|
{{- $classes = (replaceRE "\\s+" " " (replaceRE "," " " ($dest_url.Query.Get "classes") ) ) }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue