valor/layouts/shortcodes/gif.html

12 lines
297 B
HTML
Raw Normal View History

2022-09-18 13:10:37 -04:00
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
2023-03-06 19:41:36 -05:00
<video autoplay muted loop preload="true" class="gif">
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}}