valor/layouts/shortcodes/gif.html
2023-03-06 19:41:36 -05:00

11 lines
297 B
HTML

{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
<video autoplay muted loop preload="true" class="gif">
{{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}}