This shortcode will add a video element embedded in a `<figure>` with an optional `<figcaption>`. This fixes #1.
8 lines
213 B
HTML
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>
|