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