From ff257a3157f161eb5bf705fe1e3d7af2be55d1f8 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Mon, 30 Jul 2018 09:03:07 +1000 Subject: [PATCH] fixes shortcode 'fig' --- layouts/shortcodes/fig.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html index 31a3c6f..5f4d565 100644 --- a/layouts/shortcodes/fig.html +++ b/layouts/shortcodes/fig.html @@ -24,7 +24,7 @@ {{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}" {{ end }} {{ with .Get "align" }}align="{{ . }}"{{ end }} - width="{{ .Get "width" | default "100%"}}" + {{ with .Get "width" }}width="{{ . }}"{{ end }} {{ with .Get "height" }}width="{{ . }}"{{ end }} /> {{ if .Get "link"}}{{ end }}