Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-09-01 04:13:30 +0300
committerVictoria Drake <hello@victoria.dev>2020-09-01 04:13:30 +0300
commit72c356c78f6776d11e327f5490d3892136df6394 (patch)
treee657f959520d86b2a703c79e6371bc7df767049b /layouts
parent0aa8d7a8513fcaba654d3082eef25210c63818ee (diff)
parentbf3f6c25b7eabf5b71420531c6e985733d64f9bd (diff)
Merge branch 'video-background' of https://github.com/arthurbailao/hugo-theme-sam into arthurbailao-video-background
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/index.html16
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>