shortcodes/gif.html

12 lines
297 B
HTML
Raw Normal View History

2023-05-03 20:30:33 -04:00
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
2023-05-03 20:33:16 -04:00
<video autoplay muted loop preload="true" class="gif">
2023-05-03 20:30:33 -04:00
{{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}}