aboutsummaryrefslogtreecommitdiff
path: root/templates/shortcodes/video.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/shortcodes/video.html')
-rw-r--r--templates/shortcodes/video.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/shortcodes/video.html b/templates/shortcodes/video.html
new file mode 100644
index 0000000..a1a2f31
--- /dev/null
+++ b/templates/shortcodes/video.html
@@ -0,0 +1,7 @@
+<video controls>
+ {% for source in sources -%}
+ {% set type = source | split(pat=".") | last -%}
+ <source src="{{ config.base_url | safe }}{{ page.path | safe }}{{ source | safe }}" type="{{ 'video/' ~ type }}">
+ {% endfor -%}
+ Your browser doesn't support the video tag and/or the video formats in use here – sorry!
+</video>