blog

My blog at www.shimmy1996.com

git clone git://git.shimmy1996.com/blog.git

figure.html (223B)

    1 {{ if .Get "caption" }}<figure>{{ end }}
    2 <img alt="{{ (.Get "alt") }}" src="{{ .Get "src" }}"/>
    3 {{- with .Get "caption" -}}
    4 <figcaption>{{ . | replaceRE "Figure [0-9]*: " "" | markdownify }}</figcaption></figure>
    5 {{ end }}