diff options
author | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-08-25 00:00:00 +0000 |
---|---|---|
committer | Nicholas Johnson <nick@nicholasjohnson.ch> | 2023-08-25 00:00:00 +0000 |
commit | 001e84a04e9a3d11cfa8635df2d4557687f17280a1c4d2ed7eda2d0794ca3d32 (patch) | |
tree | f78efc20d7c66b98828278c4beecb102a3cfa299eb134ff1b2559256bbeb00ac /layouts | |
parent | 8e8dc95204760f45a53b8cbb59e7017d53f0491501cdb9ecab759338fd713b02 (diff) | |
download | hugo-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.gmi | 8 |
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 -}} |