aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.gmi2
-rw-r--r--layouts/_default/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 17d77bf..6201f74 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -3,7 +3,7 @@
=> / 🔗 Return to homepage
-{{ if .Page.Params.pageinfo }}{{ partial "pageinfo" . }}
+{{ if (.Page.Params.pageinfo | default true) }}{{ partial "pageinfo" . }}
{{ end -}}
# {{ .Name | safeHTML }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 3a6ade1..a1f9ea3 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,7 +2,7 @@
<nav>
<p id="return"><a href="/" rel="noreferrer">🔗 Return to homepage</a></p>
</nav>
-{{- if .Page.Params.pageinfo }}
+{{- if (.Page.Params.pageinfo | default true) }}
<p>{{ partial "pageinfo" . }}</p>{{ end }}
<main>
<h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>