diff --git a/layouts/shortcodes/gif.html b/layouts/shortcodes/gif.html index bdd7d0a..407649c 100644 --- a/layouts/shortcodes/gif.html +++ b/layouts/shortcodes/gif.html @@ -1,4 +1,11 @@ +{{ if .Get "href"}} +<a href='{{.Get "href"}}'> +{{end}} <video autoplay muted loop preload="true"> <source src='{{.Site.BaseURL}}{{.Get "src" }}'> <source src='{{.Site.BaseURL}}{{.Get 0 }}'> -</video> \ No newline at end of file +</video> +{{ if .Get "href"}} +</a> +{{end}} + diff --git a/readme.md b/readme.md index 91446d2..4da8b1a 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@  -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?