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:
Takashi Kato 2020-06-16 21:14:43 +09:00 • committed by GitHub
commit 71f50d5b40
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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