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 | 0ff4039f0947a7e51a9b982f3ad900e5187e554d7747e2795cf9953c41211da0 (patch) | |
tree | 87005512b7249ea8629bcabe9772221485b8f7e01d020d4d7cdcfba49e70a2af /layouts/term/term.gmi | |
parent | 4daeb8accf5177ec6cf1278debc3d92e9e3bee22b8f3fdf87828d3b513bdbd42 (diff) | |
download | hugo-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.gmi | 7 |
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 -}} |