theme: cleanup image render hook #395

This commit is contained in:
Sören Weber 2022-11-19 02:10:16 +01:00
parent af7d036bac
commit a5be88220b
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -24,10 +24,6 @@
{{- 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") ) ) }}
{{- $featherlight = (ne ($dest_url.Query.Get "featherlight") "false") }} {{- $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" }} {{- with $dest_url.Query.Get "height" }}
{{ $height = . }} {{ $height = . }}
{{- end }} {{- end }}