aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicholasjohnson.ch>2023-08-25 00:00:00 +0000
committerNicholas Johnson <nick@nicholasjohnson.ch>2023-08-25 00:00:00 +0000
commit001e84a04e9a3d11cfa8635df2d4557687f17280a1c4d2ed7eda2d0794ca3d32 (patch)
treef78efc20d7c66b98828278c4beecb102a3cfa299eb134ff1b2559256bbeb00ac /layouts
parent8e8dc95204760f45a53b8cbb59e7017d53f0491501cdb9ecab759338fd713b02 (diff)
downloadhugo-theme-journal-001e84a04e9a3d11cfa8635df2d4557687f17280a1c4d2ed7eda2d0794ca3d32.tar.gz
hugo-theme-journal-001e84a04e9a3d11cfa8635df2d4557687f17280a1c4d2ed7eda2d0794ca3d32.zip
Fix single page Gemini metadata spacing
Diffstat (limited to 'layouts')
-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 -}}