{{/* * This version of the figure shortcode needs to be closed and doesn't * add an image itself, but relies on the img.html shortcode to provide * a responsive image instead. */}} {{- if .Get "link" -}} {{- end -}} {{- .Inner -}} {{- if .Get "link" }}{{ end -}} {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
{{ with (.Get "title") -}}

{{ . }}

{{- end -}} {{- if or (.Get "caption") (.Get "attr") -}}

{{- .Get "caption" | markdownify -}} {{- with .Get "attrlink" }} {{- end -}} {{- .Get "attr" | markdownify -}} {{- if .Get "attrlink" }}{{ end }}

{{- end }}
{{- end }}