Updated GIF to work with links

This commit is contained in:
Gabriel 2022-09-18 13:10:36 -04:00
parent f42d484bf5
commit c32394fcf6
2 changed files with 9 additions and 2 deletions

View file

@ -1,4 +1,11 @@
{{ if .Get "href"}}
<a href='{{.Get "href"}}'>
{{end}}
<video autoplay muted loop preload="true"> <video autoplay muted loop preload="true">
<source src='{{.Site.BaseURL}}{{.Get "src" }}'> <source src='{{.Site.BaseURL}}{{.Get "src" }}'>
<source src='{{.Site.BaseURL}}{{.Get 0 }}'> <source src='{{.Site.BaseURL}}{{.Get 0 }}'>
</video> </video>
{{ if .Get "href"}}
</a>
{{end}}

View file

@ -4,7 +4,7 @@
![](https://gabe.rocks/themes/valor//media/freedom.png) ![](https://gabe.rocks/themes/valor//media/freedom.png)
Check out the demo & documentation [here](https://gabe.rocks/themes/freedom/) ### Check out the demo & documentation [here](https://gabe.rocks/themes/freedom/)
### Why use these themes? ### Why use these themes?