diff options
author | Victoria Drake <hello@victoria.dev> | 2020-09-01 04:26:16 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-09-01 04:26:16 +0300 |
commit | 63c93b8f850423608053262010b61e8c2d644f1a (patch) | |
tree | 93d2411c5220d3bc71b11d86984ce7b3e6fe22bb /layouts | |
parent | 2b743024015576c2ba233d414ecd9e78a82117ed (diff) | |
parent | 72c356c78f6776d11e327f5490d3892136df6394 (diff) |
Merge branch 'arthurbailao-video-background'
Diffstat (limited to 'layouts')
-rwxr-xr-x | layouts/index.html | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/layouts/index.html b/layouts/index.html index 3c7fcdf..7447984 100755 --- a/layouts/index.html +++ b/layouts/index.html @@ -7,6 +7,20 @@ </head> <body> + {{ with .Site.Params.videoBackgroud }} + <video class="video" autoplay muted preload loop playsinline> + {{ range .sources }} + <source + src="{{ .source }}" + type="{{ .type }}" + poster="{{ .poster }}" /> + {{ end }} + </video> + {{ with .overlay }} + <div id="overlay" style="background: {{ . | safeCSS }};"></div> + {{ end }} + {{ end }} + <nav role="navigation" class="flex-container" id="splash"> {{ if .Site.Params.mainMenu }} @@ -27,4 +41,4 @@ </nav> </body> -</html>
\ No newline at end of file +</html> |