From 001e84a04e9a3d11cfa8635df2d4557687f17280a1c4d2ed7eda2d0794ca3d32 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 25 Aug 2023 00:00:00 +0000 Subject: Fix single page Gemini metadata spacing --- layouts/_default/single.gmi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'layouts') 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 -}} -- cgit v1.2.3