-
Erxleben, Fredo authoredErxleben, Fredo authored
video.html 526 B
{% comment %}
Includes a HTML5 video within a figure environment.
Video controls are enabled.
The file type must be WebM.
path : the path to the video file, relative to site.directory.videos
caption : the caption to be put under the video
{% endcomment %}
<figure>
<video controls>
<source
src="{{ site.directory.videos | relative_url }}{{ include.path }}"
type="video/webm"/>
</video>
<figcaption>
{{ include.caption }}
</figcaption>
</figure>