all repos — website @ 33493dc0f1295173ba9acae45f0becc24258e40b

personal website hosted at prithu.xyz, built using hugo

add video shortcode
Prithu Goswami pg@prithu.dev
Sat, 17 Feb 2024 21:50:17 +0530
commit

33493dc0f1295173ba9acae45f0becc24258e40b

parent

b871117569b7fdb69dcd292de24a80d94b5cbeb3

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>