jlelse
/
Indieroad
Archived
1
Fork 0

Render images as figures with caption

This commit is contained in:
Jan-Lukas Else 2020-01-19 09:07:51 +01:00
parent bf39a4157c
commit ea844bce3d
1 changed files with 10 additions and 0 deletions

View File

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