- Add some padding to the top of the footnotes block - Add .figure--video to the list of elements that get XL block margins
15 lines
438 B
HTML
15 lines
438 B
HTML
{{- if .IsBlock }}
|
|
<figure class="figure figure--image" id="figure-{{ .Ordinal }}">
|
|
<img src="{{ .Destination | safeURL }}"
|
|
{{- with .Text }} alt="{{ . }}"{{ end -}}
|
|
>
|
|
{{- with .Title }}
|
|
<figcaption>{{ . }}</figcaption>
|
|
{{- end }}
|
|
</figure>
|
|
{{ else -}}
|
|
<img src="{{ .Destination | safeURL }}"
|
|
{{- with .Text }} alt="{{ . }}"{{ end -}}
|
|
{{- with .Title }} title="{{ . }}"{{ end -}}
|
|
>
|
|
{{- end }}
|