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