aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/single.gmi8
1 files changed, 5 insertions, 3 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index c8d84e8..23ca547 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -1,11 +1,13 @@
{{ define "main" -}}
{{ $emoji := cond (.Page.Params.showlinkemoji | default true) (emojify ":link: ") "" -}}
-=> {{ .Site.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" }}
+=> {{ .Site.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" -}}
+{{ if (.Page.Params.pageinfo | default true) }}
+
+{{ partial "pageinfo.gmi" . -}}
+{{ end }}
-{{ if (.Page.Params.pageinfo | default true) }}{{ partial "pageinfo.gmi" . }}
-{{ end -}}
# {{ .Name | safeHTML }}
{{ $content := chomp (.RawContent) -}}
{{ $scratch := newScratch -}}