aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 -}}