diff options
author | Dmitry Verkhoturov <paskal.07@gmail.com> | 2018-03-25 18:08:39 +0300 |
---|---|---|
committer | Vicky Lai <vicky@vickylai.io> | 2018-03-25 18:08:39 +0300 |
commit | f4568a45894f302b368e52fe82958ee0964dca9a (patch) | |
tree | 7d107dccbefcb5e7e10f1583a70ff2cfc458febe /layouts/index.html | |
parent | a459b3808f674e97ac142d74584d750d151e6b11 (diff) |
set default if no configuration is set for variables which require that (#36)
Diffstat (limited to 'layouts/index.html')
-rw-r--r-- | layouts/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/index.html b/layouts/index.html index ffa2a2d..5d922c1 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -3,14 +3,14 @@ <div id="top"> <!-- Where all the awesome begins --> -<div class="hero is-{{ .Site.Params.introHeight }}"> +<div class="hero is-{{ .Site.Params.introHeight | default "fullheight" }}"> <!-- Possible hero-head not used --> <!-- Super sweet Hero body title --> <div class="hero-body"> <div class="container has-text-centered"> <!-- Title and tagline --> <h1 class="bold-title {{ if .Site.Params.fadeIn }}fade-in one{{ end }}"> - Hi, I'm {{ .Site.Params.firstName }}. + Hi, I'm {{ .Site.Params.firstName | default "Introduction" }}. </h1> <h3 class="subtitle is-3 {{ if.Site.Params.fadeIn }} fade-in two{{ end }}"> {{ .Site.Params.tagLine }} |