smol/layouts/_default/render-image.html
Tobias Pfandzelter 73ad44e2ca add image captions
2020-08-05 21:52:27 +02:00

9 lines
221 B
HTML

{{ if .Title }}
<figure>
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
<figcaption>{{ .Title }}</figcaption>
</figure>
{{ else }}
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
{{ end }}