added option to set a video as jumbotron background; redesigned hamburger mobile nav

This commit is contained in:
Gabriele Musco 2021-07-06 15:57:07 +02:00
parent c1ebf68128
commit e3a23c2ae7
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
3 changed files with 103 additions and 13 deletions

View file

@ -1,4 +1,19 @@
{{ if and .IsHome (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }}
{{
$jumbo_fullscreen := (or
(.Site.Data.jumbotron.fullscreen | default false)
(.Site.Data.jumbotron.backgroundVideo)
)
}}
{{ if .Site.Data.jumbotron.backgroundVideo }}
<div class="video_container">
<video
class="jumbotron_video"
src="{{ .Site.Data.jumbotron.backgroundVideo }}"
autoplay mute loop>
</video>
</div>
{{ end }}
<div class="jumbotron">
{{ if .Site.Data.jumbotron.image }}
<img src="{{ .Site.Data.jumbotron.image }}" />
@ -21,7 +36,7 @@
</div>
{{ if (
and
(.Site.Data.jumbotron.fullscreen | default false)
$jumbo_fullscreen
(.Site.Data.jumbotron.downArrow | default false)
) }}
<div class="arrow" onclick="jumpdown();">