commit
3489db7b9b
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@
|
|||
{{ if and (.Get "width") (.Get "height") -}}
|
||||
{{ $width = (int (.Get "width")) -}}
|
||||
{{ $height = (int (.Get "height")) -}}
|
||||
{{ else if (.Get "width") -}}
|
||||
{{ else if (.Get "width") -}}
|
||||
{{ $width = (int (.Get "width")) -}}
|
||||
{{ if and ($realwidth) (lt ($width) ($realwidth)) -}}
|
||||
{{ $height = (mul ($realheight) (div (add ($width) 0.0) ($realwidth))) -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue