summaryrefslogtreecommitdiff
path: root/layouts/term/term.gmi
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
commit0ff4039f0947a7e51a9b982f3ad900e5187e554d7747e2795cf9953c41211da0 (patch)
tree87005512b7249ea8629bcabe9772221485b8f7e01d020d4d7cdcfba49e70a2af /layouts/term/term.gmi
parent4daeb8accf5177ec6cf1278debc3d92e9e3bee22b8f3fdf87828d3b513bdbd42 (diff)
downloadhugo-theme-journal-0ff4039f0947a7e51a9b982f3ad900e5187e554d7747e2795cf9953c41211da0.tar.gz
hugo-theme-journal-0ff4039f0947a7e51a9b982f3ad900e5187e554d7747e2795cf9953c41211da0.zip
Fix Gemini term spacing
Diffstat (limited to 'layouts/term/term.gmi')
-rw-r--r--layouts/term/term.gmi7
1 files changed, 7 insertions, 0 deletions
diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi
index 7b4520a..634eb8d 100644
--- a/layouts/term/term.gmi
+++ b/layouts/term/term.gmi
@@ -3,14 +3,21 @@
# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}"
+
+
## {{ i18n "feeds" }}
+
=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}
+
## {{ i18n "journalEntries" }}
+
{{ $entriesMinusOne := sub (len .Data.Pages) 1 -}}
{{ range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . }}
+
{{ end -}}
+
{{ range last 1 .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . -}}
{{ end -}}