{{ $disableImageOptimization := .Site.Params.disableImageOptimization | default false }} {{ if .Get "default" }} {{ template "_internal/shortcodes/figure.html" . }} {{ else }} {{- $url := urls.Parse (.Get "src") }} {{- $altText := .Get "alt" }} {{- $caption := .Get "caption" }} {{- $href := .Get "href" }} {{- $class := .Get "class" }} {{- $target := .Get "target" | default "_blank" }} {{- $gallery_class := .Get "gallery_class" }}
{{ with $caption }}