cupper-hugo-theme/themes/cupper/layouts/shortcodes/figure.html

8 lines
232 B
HTML
Raw Normal View History

2017-11-02 16:39:45 +01:00
{{ $caption := .Get "caption" }}
<figure role="group" aria-describedby="caption-{{ $caption | md5 }}">
{{ .Inner }}
<figcaption id="caption-{{ $caption | md5 }}">
{{ .Get "caption" | markdownify }}
</figcaption>
</figure>