mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: cleanup image render hook #395
This commit is contained in:
parent
af7d036bac
commit
a5be88220b
1 changed files with 0 additions and 4 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue