fixed fullscreen jumbotron height; don't render jumbotron if not home page
This commit is contained in:
parent
fc530bc483
commit
c1ebf68128
|
@ -633,6 +633,11 @@ header {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
header.jumbotronContainer {
|
header.jumbotronContainer {
|
||||||
|
> *:first-child {
|
||||||
|
padding-top: 15px;
|
||||||
|
}
|
||||||
|
padding-bottom: 0;
|
||||||
|
padding-top: 0;
|
||||||
.jumbotron { display: flex; }
|
.jumbotron { display: flex; }
|
||||||
{{ if .Site.Data.jumbotron.background }}
|
{{ if .Site.Data.jumbotron.background }}
|
||||||
background:
|
background:
|
||||||
|
|
|
@ -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">
|
<div class="jumbotron">
|
||||||
{{ if .Site.Data.jumbotron.image }}
|
{{ if .Site.Data.jumbotron.image }}
|
||||||
<img src="{{ .Site.Data.jumbotron.image }}" />
|
<img src="{{ .Site.Data.jumbotron.image }}" />
|
||||||
|
|
Loading…
Reference in New Issue