 $caption = $alt }}
{{- end }}
{{- if not (eq $type "margin") }}
    {{- if eq $type "full" }}<figure class="fullwidth">
    {{- else }}<figure {{ with .Get "class" }} class="{{ . }}"{{ end }}>
    {{- end }}
{{- end }}
{{- if eq $type "full" }}
    {{- with .Get "link" }}<a href="{{ . }}" class="has-img">{{ end }}
        <img src="{{ $src }}"
            {{ with $alt }}
                alt=" {{ . }}"
                title="{{ . }}"
            {{ end }}
            aria-describedby="{{ $figID }}"
        