fixed fullscreen jumbotron height; don't render jumbotron if not home page

This commit is contained in:
Gabriele Musco 2021-07-06 14:16:32 +02:00
parent fc530bc483
commit c1ebf68128
No known key found for this signature in database
GPG Key ID: 8539FD3454380B83
2 changed files with 6 additions and 1 deletions

View File

@ -633,6 +633,11 @@ header {
}
}
header.jumbotronContainer {
> *:first-child {
padding-top: 15px;
}
padding-bottom: 0;
padding-top: 0;
.jumbotron { display: flex; }
{{ if .Site.Data.jumbotron.background }}
background:

View File

@ -1,4 +1,4 @@
{{ if (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }}
{{ if and .IsHome (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }}
<div class="jumbotron">
{{ if .Site.Data.jumbotron.image }}
<img src="{{ .Site.Data.jumbotron.image }}" />