Remove maxheight param
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
{{ $gap := $params.gap }}
|
||||
{{ $height := $params.height }}
|
||||
{{ $horizontal := $params.horizontal | default "center" }}
|
||||
{{ $maxheight := $params.maxheight }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
{{ $number := $params.number }}
|
||||
{{ $numbered := $params.numbered }}
|
||||
@@ -28,10 +27,6 @@
|
||||
{{ $heights = $heights | append (printf "height: %v" $height) }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $maxheight }}
|
||||
{{ $heights = $heights | append (printf "max-height: %v" $maxheight) }}
|
||||
{{ end }}
|
||||
|
||||
{{ $heights = delimit ($heights | sort) "; " }}
|
||||
|
||||
{{ if $maxwidth }}
|
||||
|
@@ -7,7 +7,6 @@
|
||||
{{ $height := $params.height }}
|
||||
{{ $horizontal := $params.horizontal }}
|
||||
{{ $link := $params.link }}
|
||||
{{ $maxheight := $params.maxheight }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
{{ $method := $params.method }}
|
||||
{{ $number := $params.number }}
|
||||
@@ -47,7 +46,6 @@
|
||||
"float" $float
|
||||
"height" $height
|
||||
"horizontal" $horizontal
|
||||
"maxheight" $maxheight
|
||||
"maxwidth" $maxwidth
|
||||
"number" $number
|
||||
"numbered" $numbered
|
||||
|
@@ -7,7 +7,6 @@
|
||||
{{ $fingerprint := $params.fingerprint | default true }}
|
||||
{{ $height := $params.height }}
|
||||
{{ $loading := $params.loading | default "lazy" }}
|
||||
{{ $maxheight := $params.maxheight }}
|
||||
{{ $maxwidth := $params.maxwidth }}
|
||||
{{ $method := $params.method }}
|
||||
{{ $options := $params.options }}
|
||||
@@ -57,11 +56,11 @@
|
||||
{{ $src = $resource.RelPermalink }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (or $height $maxheight) (not (or $maxwidth $width)) }}
|
||||
{{ if and $height (not (or $maxwidth $width)) }}
|
||||
{{ $width = "auto" }}
|
||||
{{ end }}
|
||||
|
||||
{{ if and (or $maxwidth $width) (not (or $height $maxheight)) }}
|
||||
{{ if and (or $maxwidth $width) (not $height) }}
|
||||
{{ $height = "auto" }}
|
||||
{{ end }}
|
||||
|
||||
@@ -75,16 +74,6 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $maxheight }}
|
||||
{{ with printf "max-height: %v" $maxheight }}
|
||||
{{ if $style }}
|
||||
{{ $style = printf "%v; %v" $style . }}
|
||||
{{ else }}
|
||||
{{ $style = . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ if $maxwidth }}
|
||||
{{ with printf "max-width: %v" $maxwidth }}
|
||||
{{ if $style }}
|
||||
|
Reference in New Issue
Block a user