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:
Diffstat (limited to 'layouts/partials/extra/video.html')
-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>
+