diff --git a/layouts/shortcodes/figures/image.html b/layouts/shortcodes/figures/image.html index 3fa21b3..14fe93c 100644 --- a/layouts/shortcodes/figures/image.html +++ b/layouts/shortcodes/figures/image.html @@ -30,7 +30,9 @@ {{ if and $shouldShowTitle -}} {{- range $imgs -}} -
{{ .Title }}
+ {{- if gt (len .Title) 0 -}} +
{{ .Title }}
+ {{- end -}} {{- end -}} {{- end }}