valor/layouts/shortcodes/video.html
2022-09-17 19:22:44 -04:00

4 lines
No EOL
211 B
HTML

<video {{if .Get "autoplay"}}autoplay muted loop preload="true"{{else}}controls preload="false"{{end}}>
<source src='{{.Site.BaseURL}}{{.Get "src" }}'>
<source src='{{.Site.BaseURL}}{{.Get 0}}'>
</video>