summaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-05-09 00:00:00 +0000
commit7ba1562e0912d6db13e7d195b087316a00764ca6731bd77cf634c7c47bceff4c (patch)
tree7fff0909c33b06d4e52068b845bd6aeedcb3647ce0d7c97c6f351457e51afde7 /layouts/index.html
parentb077fceef78e9bda5f1402c22f8e7d4ffb47d0e3ac242ea8297981c45e30155b (diff)
downloadhugo-theme-journal-3cb74a52f5820c38525f118faf070f5db93ec9d499717e27eb450ad60a7d0633.tar.gz
hugo-theme-journal-3cb74a52f5820c38525f118faf070f5db93ec9d499717e27eb450ad60a7d0633.zip
Make non-critical page elements optionalv0.5.2
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
index 3ba0607..d29c86a 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,7 +1,11 @@
{{ define "main" -}}
<main>
+ {{- if .Site.Params.indexTitle }}
<h1>{{ .Site.Params.indexTitle }}</h1>
+ {{- end }}
+ {{- if .Site.Params.indexIntro }}
<p>{{ .Site.Params.indexIntro }}</p>
+ {{- end }}
<h2>Navigation Links</h2>
<nav>
<ul class="list">