Render images as figures with caption
This commit is contained in:
parent
bf39a4157c
commit
ea844bce3d
|
@ -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>
|
Reference in New Issue