added option to set a video as jumbotron background; redesigned hamburger mobile nav
This commit is contained in:
parent
c1ebf68128
commit
e3a23c2ae7
3 changed files with 103 additions and 13 deletions
|
|
@ -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();">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue