This commit is contained in:
6
templates/shortcodes/video.html
Normal file
6
templates/shortcodes/video.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<video {% if autoplay %}autoplay{% endif %} {% if loop %}loop{% endif %} controls>
|
||||
{%- set video_path = page.colocated_path ~ src %}
|
||||
{%- set type = src | split(pat=".") | last %}
|
||||
<source src="{{ get_url(path=video_path) }}" type="{{ 'video/' ~ type }}" />
|
||||
Your browser doesn't support the video.
|
||||
</video>
|
Reference in New Issue
Block a user