{ . }}" {{ end }} aria-describedby="{{ $figID }}" loading="lazy">
        {{- if .Get "link" }}</a>{{ end }}
    {{ else }}
        <span id="the-{{ $figID }}" class="marginpar abs">
    {{- end }}
{{- end }}
    {{ with .Get "title" }}<strong>{{ . }} </strong>{{ end }}
    {{ with $caption }}{{ . }}{{ end }}
    {{ with .Get "attrlink" }}<a href="{{ .}}">{{ end }}
    {{- with .Get "attr" }}{{ . }}{{ end }}
    {{- if .Get "attrlink" }}</a>{{ end }}
{{- if eq $type "full" }}
    </figcaption>
{{- else }}
 