add video shortcode
Prithu Goswami pg@prithu.dev
Sat, 17 Feb 2024 21:50:17 +0530
1 files changed,
5 insertions(+),
0 deletions(-)
jump to
A
layouts/shortcodes/video.html
@@ -0,0 +1,5 @@
+<video class="vid" preload=auto {{ with .Get "loop" }} loop {{ end }} {{ with .Get "autoplay" }} autoplay {{ end }} controls> + <source src="{{ .Get "src" }}" type="{{ .Get "type" }}"> + There should have been a video here but your browser does not seem + to support it. +</video>