diff options
author | Victoria Drake <hello@victoria.dev> | 2020-09-01 04:13:30 +0300 |
---|---|---|
committer | Victoria Drake <hello@victoria.dev> | 2020-09-01 04:13:30 +0300 |
commit | 72c356c78f6776d11e327f5490d3892136df6394 (patch) | |
tree | e657f959520d86b2a703c79e6371bc7df767049b /layouts | |
parent | 0aa8d7a8513fcaba654d3082eef25210c63818ee (diff) | |
parent | bf3f6c25b7eabf5b71420531c6e985733d64f9bd (diff) |
Merge branch 'video-background' of https://github.com/arthurbailao/hugo-theme-sam into 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> |