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

@ -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 }}" />