render-image.html: Add the figure--image class

Add the `figure--image` class to <figure> elements with <img> contents.
This commit is contained in:
Eryn Wells 2024-07-03 07:34:50 -07:00
parent a5e5d04b9f
commit 3597b59fa5

View file

@ -1,10 +1,10 @@
{{- if .IsBlock }}
<figure id="figure-{{ .Ordinal }}">
<figure class="figure--image" id="figure-{{ .Ordinal }}">
<img src="{{ .Destination | safeURL }}"
{{- with .Text }} alt="{{ . }}"{{ end -}}
>
{{- with .Title }}
<figcaption>{{ . }}</figcaption>
<figcaption>{{ . }}</figcaption>
{{- end }}
</figure>
{{ else -}}