aboutsummaryrefslogtreecommitdiff
path: root/layouts/term
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/term')
-rw-r--r--layouts/term/term.gmi9
1 files changed, 2 insertions, 7 deletions
diff --git a/layouts/term/term.gmi b/layouts/term/term.gmi
index 634eb8d..8d6158f 100644
--- a/layouts/term/term.gmi
+++ b/layouts/term/term.gmi
@@ -10,15 +10,10 @@
=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}
-## {{ i18n "journalEntries" }}
+## {{ i18n "journalEntries" -}}
-{{ $entriesMinusOne := sub (len .Data.Pages) 1 -}}
-{{ range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse -}}
-{{ partial "metadata.gmi" . }}
+{{ range .Data.Pages.ByPublishDate.Reverse }}
-{{ end -}}
-
-{{ range last 1 .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . -}}
{{ end -}}
{{ end }} \ No newline at end of file