website/layouts/_default/_markup/render-image.html
2023-01-16 15:28:03 +01:00

4 lines
No EOL
273 B
HTML

<figure class="md-img {{ with .Text }}with-text{{ end }}">
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" />
{{ with .Text }}<figcaption class="md-img-text">{{ . }}</figcaption>{{ end }}
</figure>