freedom/layouts/shortcodes/gif.html

11 lines
241 B
HTML

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