summaryrefslogtreecommitdiff
path: root/layouts/_default/home.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/home.html')
-rw-r--r--layouts/_default/home.html11
1 files changed, 5 insertions, 6 deletions
diff --git a/layouts/_default/home.html b/layouts/_default/home.html
index bc3aad8..e251ce3 100644
--- a/layouts/_default/home.html
+++ b/layouts/_default/home.html
@@ -3,18 +3,17 @@
{{ .Content }}
{{/* Intro summary section */}}
-{{ if .Site.Params.homeIntro }}
+{{ if or .Site.Params.homeIntroTitle .Site.Params.homeIntroContent }}
<div class="intro">
- {{ if .Site.Params.homeIntroTitle }}
- <h1>{{ .Site.Params.homeIntroTitle }}</h1>
+ {{ with .Site.Params.homeIntroTitle }}
+ <h1>{{ . }}</h1>
{{ end }}
- {{ if .Site.Params.homeIntroContent }}
- <p>{{ .Site.Params.homeIntroContent | markdownify }}</p>
+ {{ with .Site.Params.homeIntroContent }}
+ <p>{{ . | markdownify }}</p>
{{ end }}
</div>
-
{{ end }}
{{/* Social Icons */}}