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:
parent
bbbc85d824
commit
8678494542
3 changed files with 20 additions and 0 deletions
8
layouts/shortcodes/video.html
Normal file
8
layouts/shortcodes/video.html
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue