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

12 lines
373 B
HTML

<figure>
<video class="video-shortcode" preload='{{ .Get "preload" }}' controls>
<source src='{{ .Get "src" }}' type='{{ .Get "type" }}'>
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>