    loading="lazy"
            >
    {{- if .Get "link" }}</a>{{ end }}
    <figcaption id="{{ $figID }}">
{{- else }}
    <input id="{{ $figID }}" class="marginpar-ctrl" type="checkbox" aria-controls="the-{{ $figID }}" hidden>
    <label for="{{ $figID }}"></label>
    {{- if eq $type "margin" }}
        <span id="the-{{ $figID }}" class="marginpar">
        {{- with .Get "link" }}<a href="{{ . }}" class="has-img">
        {{- end }}
            <img src="{{ $src }}" {{ with $alt }} alt=" {{ . }}" title="{