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

12 lines
242 B
HTML
Raw Permalink Normal View History

2020-08-05 19:52:27 +00:00
{{ if .Title }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
<figcaption>{{ .Title }}</figcaption>
</figure>
{{ else }}
2020-11-18 17:12:55 +00:00
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
</figure>
2020-08-05 19:52:27 +00:00
{{ end }}