add default image rendered for md

This commit is contained in:
yequari 2023-10-20 17:20:25 -07:00
parent 7cc89d81b0
commit 11421b609b
1 changed files with 8 additions and 0 deletions

View File

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