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

12 lines
242 B
HTML
Raw Normal View History

2022-12-10 10:37:36 +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 }}