cupper-hugo-theme/themes/infusion/layouts/shortcodes/figure.html
2017-06-28 10:34:21 +01:00

8 lines
265 B
HTML

{{ $caption := .Get "caption" }}
<figure role="group" aria-describedby="{{ $caption | base64Encode | truncate 20 "" }}">
{{ .Inner }}
<figcaption id="{{ $caption | base64Encode | truncate 20 "" }}">
{{ .Get "caption" | safeHTML }}
</figcaption>
</figure>