yequari.com/layouts/_default/_markup/render-image.html

9 lines
270 B
HTML
Raw Normal View History

2023-10-21 00:20:25 +00:00
{{ if .Title }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" {{ with .Title }}title="{{ . }}"{{ end }}>
<figcaption>{{ .Title }}</figcaption>
</figure>
{{ else }}
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}">
{{ end }}