valor/layouts/shortcodes/gif.html
2022-09-18 16:27:59 -04:00

11 lines
285 B
HTML

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