freedom/layouts/shortcodes/gif.html

12 lines
285 B
HTML
Raw Normal View History

2022-09-18 13:10:36 -04:00
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
2022-09-16 16:04:37 -04:00
<video autoplay muted loop preload="true">
2022-09-18 16:27:03 -04:00
{{if .Get 0}}<source src='{{.Site.BaseURL}}{{.Get 0 }}'>{{end}}
{{if .Get "src"}}<source src='{{.Site.BaseURL}}{{.Get "src" }}'>{{end}}
2022-09-18 13:10:36 -04:00
</video>
{{ if .Get "href"}}
</a>
{{end}}