Add render-image template

This commit is contained in:
Vri 🌈 2023-01-15 01:59:37 +01:00
parent a42000fe63
commit 7c1f5f900f
Signed by: vrifox
GPG key ID: D40098E5B60B2197
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,4 @@
<p class="md-img {{ with .Text }}with-text{{ end }}">
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }} title="{{ . }}"{{ end }} loading="lazy" />
</p>
{{ with .Text }}<p class="md-img-text">{{ . }}</p>{{ end }}