valor/layouts/shortcodes/gif.html

12 lines
285 B
HTML
Raw Normal View History

2022-09-18 13:10:37 -04:00
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
2022-09-16 16:04:52 -04:00
<video autoplay muted loop preload="true">
2022-09-18 16:27:59 -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:37 -04:00
</video>
{{ if .Get "href"}}
</a>
{{end}}