From 0ff4039f0947a7e51a9b982f3ad900e5187e554d7747e2795cf9953c41211da0 Mon Sep 17 00:00:00 2001 From: Nicholas Johnson Date: Fri, 25 Aug 2023 00:00:00 +0000 Subject: Fix Gemini term spacing --- layouts/term/term.gmi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'layouts') 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 -}} -- cgit v1.2.3