{{ $image_path := (.Get "image_path") }} {{ $alt := (.Get "alt") }} {{ $title := (.Get "title") }} {{ $caption := (.Get "caption") }} {{ $class := .Get "class" }} {{ if $caption}} {{ $caption }} {{ else }} {{ end }}