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

8 lines
265 B
HTML
Raw Normal View History

2017-06-15 10:41:44 +02:00
{{ $caption := .Get "caption" }}
<figure role="group" aria-describedby="{{ $caption | base64Encode | truncate 20 "" }}">
{{ .Inner }}
<figcaption id="{{ $caption | base64Encode | truncate 20 "" }}">
{{ .Get "caption" | safeHTML }}
</figcaption>
</figure>