fixes shortcode 'fig'

This commit is contained in:
Huy Tran 2018-07-30 09:03:07 +10:00
parent e42d1eb815
commit ff257a3157

View file

@ -24,7 +24,7 @@
{{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}" {{ else if .Get "caption" }}alt="{{ .Get "caption" | markdownify | plainify }}"
{{ end }} {{ end }}
{{ with .Get "align" }}align="{{ . }}"{{ end }} {{ with .Get "align" }}align="{{ . }}"{{ end }}
width="{{ .Get "width" | default "100%"}}" {{ with .Get "width" }}width="{{ . }}"{{ end }}
{{ with .Get "height" }}width="{{ . }}"{{ end }} /> {{ with .Get "height" }}width="{{ . }}"{{ end }} />
{{ if .Get "link"}}</a>{{ end }} {{ if .Get "link"}}</a>{{ end }}
<!-- caption and attr--> <!-- caption and attr-->