cupper-hugo-theme/themes/infusion/layouts/shortcodes/figure.html
2017-07-13 11:58:39 +01:00

8 lines
232 B
HTML

{{ $caption := .Get "caption" }}
<figure role="group" aria-describedby="caption-{{ $caption | md5 }}">
{{ .Inner }}
<figcaption id="caption-{{ $caption | md5 }}">
{{ .Get "caption" | markdownify }}
</figcaption>
</figure>