Skip to content

Commit a5be882

Browse files
committed
theme: cleanup image render hook matcornic#395
1 parent af7d036 commit a5be882

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

layouts/partials/shortcodes/image.html

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@
2424
{{- if $dest_url.RawQuery }}
2525
{{- $classes = (replaceRE "\\s+" " " (replaceRE "," " " ($dest_url.Query.Get "classes") ) ) }}
2626
{{- $featherlight = (ne ($dest_url.Query.Get "featherlight") "false") }}
27-
{{- if or ($dest_url.Query.Get "height") ($dest_url.Query.Get "width") }}
28-
{{- $height = "auto" }}
29-
{{- $width = "auto" }}
30-
{{- end }}
3127
{{- with $dest_url.Query.Get "height" }}
3228
{{ $height = . }}
3329
{{- end }}

0 commit comments

Comments
 (0)