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

12 lines
242 B
HTML
Raw Permalink Normal View History

2023-01-23 09:07:18 +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 }}