Remove maxheight param

This commit is contained in:
Will Faught
2023-02-26 16:18:28 -08:00
parent 919ccf58ec
commit a9f609efcb
12 changed files with 4 additions and 95 deletions

View File

@@ -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 }}

View File

@@ -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

View File

@@ -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 }}