hugo-theme-termlite/layouts/_default/_markup/render-image.html
Eryn Wells f29f409642 A few miscellaneous style fixes
- Add some padding to the top of the footnotes block
- Add .figure--video to the list of elements that get XL block margins
2024-10-31 08:02:50 -07:00

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 }}