diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 6642c82..d65b533 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -1,8 +1,8 @@ {{ if .Get "src" }}
{{ . | plainify }} - {{ if .Get "caption" }} -
{{ .Get "caption" | safeHTML }}
- {{ end }} + {{- if .Get "caption" -}} +
{{ .Get "caption" }}
+ {{- end -}}
{{ end }}