From e42d1eb815bbd7a3d360e54e2fbbfc16cc53202b Mon Sep 17 00:00:00 2001 From: Huy Tran Date: Mon, 30 Jul 2018 08:17:05 +1000 Subject: [PATCH] fixes shortcode 'fig' --- layouts/shortcodes/fig.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layouts/shortcodes/fig.html b/layouts/shortcodes/fig.html index c0b09cf..31a3c6f 100644 --- a/layouts/shortcodes/fig.html +++ b/layouts/shortcodes/fig.html @@ -33,9 +33,7 @@ Figure {{ $.Page.Scratch.Get "fig" }}. {{ $fig.Get "caption" | markdownify | plainify }} {{ if .Get "attr" }} - [{{ with .Get "attrlink"}}{{ end }} - {{ .Get "attr" | markdownify }} - {{ if .Get "attrlink"}}{{ end }}] + [{{- with .Get "attrlink"}}{{ end }}{{ .Get "attr" | markdownify }}{{ if .Get "attrlink"}}{{ end -}}] {{ end }}