From 3762fe3ba9f0b4177640b181362fa387d30c56b9 Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Mon, 30 Jul 2018 09:23:19 +1000 Subject: [PATCH] fixes shortcode 'fig' --- layouts/shortcodes/fig.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html index 5f4d565..54bd8ca 100644 --- a/layouts/shortcodes/fig.html +++ b/layouts/shortcodes/fig.html @@ -24,8 +24,9 @@ {{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}" {{ end }} {{ with .Get "align" }}align="{{ . }}"{{ end }} - {{ with .Get "width" }}width="{{ . }}"{{ end }} - {{ with .Get "height" }}width="{{ . }}"{{ end }} /> + {{ with .Get "height" }}width="{{ . }}"{{ end }} + {{ with .Get "width" }}width="{{ . }}"{{ end }} style="max-width: 100%;" + /> {{ if .Get "link"}}{{ end }} {{ if ($fig.Get "caption") }}