diff --git a/layouts/_shortcodes/figure.html b/layouts/_shortcodes/figure.html index 8bac195..e34f52a 100644 --- a/layouts/_shortcodes/figure.html +++ b/layouts/_shortcodes/figure.html @@ -10,7 +10,7 @@ {{ end }} {{ else }} {{ .Inner }} - {{ with .Get "caption" }} + {{ with or (.Get "caption") (.Get 0) }}
{{ . | markdownify }}
{{ end }} {{ end }}