add image captions
This commit is contained in:
parent
41db6a77dc
commit
73ad44e2ca
2 changed files with 12 additions and 0 deletions
9
layouts/_default/render-image.html
Normal file
9
layouts/_default/render-image.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ if .Title }}
|
||||
<figure>
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
||||
<figcaption>{{ .Title }}</figcaption>
|
||||
</figure>
|
||||
{{ else }}
|
||||
<img src="{{ .Destination | safeURL }}" alt="{{ .Text }}" />
|
||||
{{ end }}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue