From 71f50d5b40bdf995dcb57431112bf5281a0a6548 Mon Sep 17 00:00:00 2001 From: Takashi Kato <46238149+k0a8t1o6@users.noreply.github.com> Date: Tue, 16 Jun 2020 21:14:43 +0900 Subject: [PATCH] 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 --- layouts/shortcodes/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 1a30751..18084d0 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -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))) -}}