Remove extra space
Encountered an issue https://github.com/frjo/hugo-theme-zen/issues/16. Per forum, this may help an error. https://discourse.gohugo.io/t/error-with-template-illegal-number-syntax/21148/4
This commit is contained in:
parent
d60e1a1582
commit
71f50d5b40
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