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

View File

@@ -3,7 +3,6 @@
{{ $height := .Get "height" }}
{{ $horizontal := .Get "horizontal" }}
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $number := .Get "number" }}
{{ $numbered := .Get "numbered" }}
@@ -20,7 +19,6 @@
"gap" 2
"height" $height
"horizontal" $horizontal
"maxheight" $maxheight
"maxwidth" $maxwidth
"number" $number
"numbered" $numbered

View File

@@ -3,7 +3,6 @@
{{ $float := .Get "float" }}
{{ $height := .Get "height" }}
{{ $horizontal := .Get "horizontal" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $number := .Get "number" }}
{{ $numbered := .Get "numbered" }}
@@ -17,7 +16,6 @@
"gap" 2
"height" $height
"horizontal" $horizontal
"maxheight" $maxheight
"maxwidth" $maxwidth
"number" $number
"numbered" $numbered

View File

@@ -4,7 +4,6 @@
{{ $image := .Get "image" }}
{{ $images := .Get 0 | default (.Get "images") }}
{{ $justify := .Get "justify" | default "center" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $method := .Get "method" | default "resize" }}
{{ $number := .Get "number" }}
@@ -33,7 +32,6 @@
"gap" 2
"height" $height
"link" $link
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
@@ -49,7 +47,6 @@
"content" (partial "paige/img.html" (dict
"class" "img-fluid"
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
@@ -105,7 +102,6 @@
"content" (partial "paige/img.html" (dict
"class" "img-fluid"
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options
@@ -129,7 +125,6 @@
"content" (partial "paige/img.html" (dict
"class" "img-fluid"
"height" $height
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"options" $options

View File

@@ -4,7 +4,6 @@
{{ $height := .Get "height" }}
{{ $horizontal := .Get "horizontal" }}
{{ $link := .Get "link" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $method := .Get "method" }}
{{ $number := .Get "number" }}
@@ -24,7 +23,6 @@
"height" $height
"horizontal" $horizontal
"link" $link
"maxheight" $maxheight
"maxwidth" $maxwidth
"method" $method
"number" $number

View File

@@ -3,7 +3,6 @@
{{ $float := .Get "float" }}
{{ $height := .Get "height" }}
{{ $horizontal := .Get "horizontal" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $number := .Get "number" }}
{{ $numbered := .Get "numbered" }}
@@ -18,7 +17,6 @@
"float" $float
"height" $height
"horizontal" $horizontal
"maxheight" $maxheight
"maxwidth" $maxwidth
"number" $number
"numbered" $numbered

View File

@@ -13,7 +13,6 @@
{{ $horizontal := .Get "horizontal" }}
{{ $keyboard := .Get "keyboard" | default true }}
{{ $loop := .Get "loop" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $muted := .Get "muted" }}
{{ $number := .Get "number" }}
@@ -130,7 +129,6 @@
"gap" 2
"height" $height
"horizontal" $horizontal
"maxheight" $maxheight
"maxwidth" $maxwidth
"number" $number
"numbered" $numbered

View File

@@ -9,7 +9,6 @@
{{ $horizontal := .Get "horizontal" }}
{{ $list := .Get "list" }}
{{ $loop := .Get "loop" }}
{{ $maxheight := .Get "maxheight" }}
{{ $maxwidth := .Get "maxwidth" }}
{{ $mute := .Get "mute" }}
{{ $number := .Get "number" }}
@@ -84,7 +83,6 @@
"gap" 2
"height" $height
"horizontal" $horizontal
"maxheight" $maxheight
"maxwidth" $maxwidth
"number" $number
"numbered" $numbered