1
Fork 0

Add figure shortcode

This commit is contained in:
Jake Howard 2018-01-27 22:38:55 +00:00
parent dad0cf720e
commit f3e437d0f2
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -0,0 +1,10 @@
{{ if .Inner }}
<figure>
<img src='{{ .Get "src" }}' class='{{ .Get "class" }}' />
<figcaption>
<small>{{ .Inner }}</small>
</figcaption>
</figure>
{{ else }}
<img src='{{ .Get "src" }}' class='{{ .Get "class" }}' />
{{ end }}