diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index e3c2fe23b..021a243ac 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,6 +1,10 @@ {{ if .Get "src" }}
+ {{- if .Get "link" -}} + + {{- end -}} {{ . | plainify }} + {{- if .Get "link" }}{{ end -}} {{ if .Get "caption" }}
{{ .Get "caption" | markdownify }}
{{ end }}