fixes shortcode 'fig'

This commit is contained in:
Huy Tran 2018-07-30 09:23:19 +10:00
parent ff257a3157
commit 3762fe3ba9

View file

@ -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"}}</a>{{ end }}
<!-- caption and attr-->
{{ if ($fig.Get "caption") }}