cupper-hugo-theme/layouts/shortcodes/figure.html
2019-01-31 18:19:20 -06: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>