diff options
-rw-r--r-- | layouts/index.gmi | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi index 8fa1593..1b66945 100644 --- a/layouts/index.gmi +++ b/layouts/index.gmi @@ -10,15 +10,10 @@ => {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML }} {{ end }} -## {{ i18n "journalEntries" }} +## {{ i18n "journalEntries" -}} +{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }} -{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry")) 1 -}} -{{ range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}} -{{ partial "metadata.gmi" . }} - -{{ end -}} - -{{ range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}} {{ partial "metadata.gmi" . -}} {{ end -}} + {{ end }}
\ No newline at end of file |