hugo-theme-readable/layouts/shortcodes/video.html
Robert Lützner 8678494542
feat: add a shortcode for 'video' (#10)
This shortcode will add a video element embedded in a `<figure>` with an
optional `<figcaption>`.

This fixes #1.
2023-05-17 20:14:46 -05:00

8 lines
213 B
HTML

<figure>
<video controls>
<source src="{{ .Get "source" }}" type="{{ .Get "type" }}">
</video>
{{ if .Get "caption" }}
<figcaption>{{ .Get "caption" }}</figcaption>
{{ end }}
</figure>