Added image captions

pull/3/head
Gianmarco Gargiulo 2022-10-21 14:29:02 +02:00
parent cef669c062
commit d5302d89e7
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
{{ if .Text }}
<figure>
<img src="{{ .Destination | safeURL }}">
<figcaption>{{ .Text }}</figcaption>
</figure>
{{ else }}
<img src="{{ .Destination | safeURL }}">
{{ end }}