Updated GIF to work with links

This commit is contained in:
Gabriel 2022-09-18 13:10:37 -04:00
parent f1e09e174d
commit f0d5d200f9
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/valor.png) ![](https://gabe.rocks/themes/valor//media/valor.png)
Check out the demo & documentation [here](https://gabe.rocks/themes/valor/) ### Check out the demo & documentation [here](https://gabe.rocks/themes/valor/)
### Why use these themes? ### Why use these themes?