website/layouts/_default/_markup/render-image.html

4 lines
273 B
HTML
Raw Permalink Normal View History

2023-01-16 15:28:03 +01:00
<figure class="md-img {{ with .Text }}with-text{{ end }}">
2023-01-15 01:59:37 +01:00
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" />
2023-01-16 15:28:03 +01:00
{{ with .Text }}<figcaption class="md-img-text">{{ . }}</figcaption>{{ end }}
</figure>