Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/chipsenkbeil/grid-side.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChip Senkbeil <chip.senkbeil@gmail.com>2015-09-28 03:54:04 +0300
committerChip Senkbeil <chip.senkbeil@gmail.com>2015-09-28 03:54:04 +0300
commit76c8fd71a5eb0ec5266f7aa02035c8b77e969d87 (patch)
treee4af2641b06837ce4b9144c92049f7ad75440502
parent5b66f1f16337f2c898eb5e12dae5a7b47d4d2213 (diff)
Added html5 video partial
-rw-r--r--layouts/partials/extra/video.html12
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>
+