cupper-hugo-theme/themes/cupper/layouts/shortcodes/figure.html
2017-11-02 15:39:45 +00: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>