diff options
author | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-28 03:54:04 +0300 |
---|---|---|
committer | Chip Senkbeil <chip.senkbeil@gmail.com> | 2015-09-28 03:54:04 +0300 |
commit | 76c8fd71a5eb0ec5266f7aa02035c8b77e969d87 (patch) | |
tree | e4af2641b06837ce4b9144c92049f7ad75440502 | |
parent | 5b66f1f16337f2c898eb5e12dae5a7b47d4d2213 (diff) |
Added html5 video partial
-rw-r--r-- | layouts/partials/extra/video.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/layouts/partials/extra/video.html b/layouts/partials/extra/video.html new file mode 100644 index 0000000..20418d0 --- /dev/null +++ b/layouts/partials/extra/video.html @@ -0,0 +1,12 @@ +<video preload="auto" autoplay loop muted> + {{ with .Params.video_preview_mp4 }} + <source type="video/mp4" src="{{ . }}"> + {{ end }} + {{ with .Params.video_preview_ogv }} + <source type="video/mp4" src="{{ . }}"> + {{ end }} + {{ with .Params.video_preview_fallback }} + <img src="{{ . }}"> + {{ end }} +</video> + |