cupper-hugo-theme/themes/infusion/layouts/shortcodes/figure.html
Heydon Pickering bee496b364 favicons
2017-07-04 11:46:56 +01:00

8 lines
281 B
HTML

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