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.
This commit is contained in:
Robert Lützner 2023-05-18 01:14:46 +00:00 committed by GitHub
parent bbbc85d824
commit 8678494542
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,8 @@
<figure>
<video controls>
<source src="{{ .Get "source" }}" type="{{ .Get "type" }}">
</video>
{{ if .Get "caption" }}
<figcaption>{{ .Get "caption" }}</figcaption>
{{ end }}
</figure>