{{- $alt := .Text -}} {{- $src := .Destination -}} {{- $title := .Title -}}

<figure>
  <img
    src="{{ $src }}"
    alt="{{ $alt }}"
    loading="lazy"
    {{
    with
    $title
    }}
    title="{{ . }}"
    {{
    end
    }}
  />
  {{- with $alt }}
  <figcaption>{{ . }}</figcaption>
  {{ end -}}
</figure>
