fix generation of figcaptions

This commit is contained in:
Tobias Pfandzelter 2020-11-17 17:59:59 +01:00
parent 73ad44e2ca
commit 2563883c1c

View file

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