From a5be88220be0ac5ed18eee3e6739bb38c79fb073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Sat, 19 Nov 2022 02:10:16 +0100 Subject: [PATCH] theme: cleanup image render hook #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 afcdf1e75b..fc7ede7440 100644 --- a/layouts/partials/shortcodes/image.html +++ b/layouts/partials/shortcodes/image.html @@ -24,10 +24,6 @@ {{- if $dest_url.RawQuery }} {{- $classes = (replaceRE "\\s+" " " (replaceRE "," " " ($dest_url.Query.Get "classes") ) ) }} {{- $featherlight = (ne ($dest_url.Query.Get "featherlight") "false") }} - {{- if or ($dest_url.Query.Get "height") ($dest_url.Query.Get "width") }} - {{- $height = "auto" }} - {{- $width = "auto" }} - {{- end }} {{- with $dest_url.Query.Get "height" }} {{ $height = . }} {{- end }}