render-image.html: Add the figure--image class
Add the `figure--image` class to <figure> elements with <img> contents.
This commit is contained in:
parent
a5e5d04b9f
commit
3597b59fa5
1 changed files with 2 additions and 2 deletions
|
@ -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 -}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue