added optional jumbotron on home page

This commit is contained in:
Gabriele Musco 2021-05-04 15:21:14 +02:00
parent 0be6633185
commit 083901e517
No known key found for this signature in database
GPG key ID: 8539FD3454380B83
4 changed files with 91 additions and 1 deletions

View file

@ -1,4 +1,4 @@
<header>
<header class="{{ if .IsHome }}jumbotronContainer{{ end }}">
{{- partial "inject/header-before.html" . -}}
<div class="titleAndSearchContainer">
<div id="titleContainer">
@ -55,4 +55,5 @@
{{ end }}
</div>
{{- partial "inject/header-after.html" . -}}
{{- partial "jumbotron.html" . -}}
</header>

View file

@ -0,0 +1,13 @@
{{ if (and (.Site.Params.enableJumbotron | default false) .Site.Data.jumbotron) }}
<div class="jumbotron">
<h1>{{ .Site.Data.jumbotron.title }}</h1>
<h2>{{ .Site.Data.jumbotron.subtitle }}</h2>
{{ if .Site.Data.jumbotron.links }}
<ul>
{{ range .Site.Data.jumbotron.links }}
<li><a href="{{ .link }}">{{ .title }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
{{ end }}