blog/themes/chosto/layouts/shortcodes/video.html

12 lines
349 B
HTML
Raw Normal View History

2022-11-18 23:35:09 +01:00
<figure>
<video class="video-shortcode" preload='auto' controls>
<source src='{{ .Get "src" }}' type='video/mp4'>
2022-11-18 23:35:09 +01:00
There should have been a video here but your browser does not seem
to support it.
</video>
{{ with .Get "caption"}}
<figcaption>
<h4>{{ . }}</h4>
</figcaption>
{{ end }}
</figure>