aboutsummaryrefslogtreecommitdiff
path: root/layouts/_default
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
commit1755bd5753a36b60b2f1971c349452aab2b7bccf7b9b8dc2e23c0cc096f38f8e (patch)
tree0891b24cf26ea102a379af7c3b49e98ecb3d519ee7a6f0a955b56283ed11d178 /layouts/_default
parent429e8b4e19365d921c01c5da45c6d4ce54f52a08ad168e3a3c54e17ba62bfa3a (diff)
downloadhugo-theme-journal-1755bd5753a36b60b2f1971c349452aab2b7bccf7b9b8dc2e23c0cc096f38f8e.tar.gz
hugo-theme-journal-1755bd5753a36b60b2f1971c349452aab2b7bccf7b9b8dc2e23c0cc096f38f8e.zip
Fix Gemini header spacing
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.gmi1
-rw-r--r--layouts/_default/single.gmi2
2 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/baseof.gmi b/layouts/_default/baseof.gmi
index 8beabc1..b67ebaa 100644
--- a/layouts/_default/baseof.gmi
+++ b/layouts/_default/baseof.gmi
@@ -1,5 +1,6 @@
{{ partial "header.gmi" . }}
+
{{ block "main" . }}{{ end -}}
{{ if $.Site.Copyright }}
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index cc98bc6..605fa96 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -1,4 +1,4 @@
-{{ define "main" }}
+{{ define "main" -}}
{{ $emoji := cond (.Page.Params.showlinkemoji | default true) (emojify ":link: ") "" -}}
=> {{ .Site.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" }}