summaryrefslogtreecommitdiff
path: root/layouts/index.gmi
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.gmi
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.gmi')
-rw-r--r--layouts/index.gmi4
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi
index ab4fdb4..b97ef74 100644
--- a/layouts/index.gmi
+++ b/layouts/index.gmi
@@ -1,7 +1,11 @@
{{ define "main" }}
+{{- if .Site.Params.indexTitle }}
# {{ .Site.Params.indexTitle | safeHTML }}
+{{- end }}
+{{- if .Site.Params.indexIntro }}
{{ .Site.Params.indexIntro | safeHTML }}
+{{- end }}
## Navigation Links
{{ range .Site.Menus.main -}}
=> {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML }}