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

8 lines
281 B
HTML
Raw Normal View History

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