shortcodes/gif.html
2023-05-03 20:30:33 -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}}