summaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.gmi3
-rw-r--r--layouts/_default/single.html2
2 files changed, 5 insertions, 0 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index 5508559..5ff88c8 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -3,6 +3,9 @@
=> / 🔗 Return to homepage
+{{ if .Page.Params.pageinfo }}{{ partial "pageinfo" . }}
+
+{{ end -}}
# {{ .Name | safeHTML }}
{{ $content := .RawContent }}
{{- $content = $content | replaceRE `\n####{0,3}` "\n###" }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index a9fc62b..3a6ade1 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -2,6 +2,8 @@
<nav>
<p id="return"><a href="/" rel="noreferrer">🔗 Return to homepage</a></p>
</nav>
+{{- if .Page.Params.pageinfo }}
+<p>{{ partial "pageinfo" . }}</p>{{ end }}
<main>
<h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>
{{ .Content -}}