added optional jumbotron on home page
This commit is contained in:
parent
0be6633185
commit
083901e517
4 changed files with 91 additions and 1 deletions
13
layouts/partials/jumbotron.html
Normal file
13
layouts/partials/jumbotron.html
Normal 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 }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue