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

12 lines
242 B
HTML
Raw Normal View History

2022-09-28 20:49:59 +00:00
{{ if .Title }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
<figcaption>{{ .Title }}</figcaption>
</figure>
{{ else }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
</figure>
{{ end }}