summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--layouts/index.gmi15
1 files changed, 9 insertions, 6 deletions
diff --git a/layouts/index.gmi b/layouts/index.gmi
index 1f1d5f1..8fa1593 100644
--- a/layouts/index.gmi
+++ b/layouts/index.gmi
@@ -1,20 +1,23 @@
{{ define "main" -}}
-{{ if .Site.Params.indexTitle }}
-# {{ .Site.Params.indexTitle | safeHTML -}}
-{{ end -}}
-{{ if .Site.Params.indexIntro }}
-{{ .Site.Params.indexIntro | safeHTML -}}
+# {{ .Site.Params.indexTitle | safeHTML }}
+
+{{ .Site.Params.indexIntro | safeHTML }}
+
-{{ end }}
## {{ i18n "navLinks" }}
+
{{ range .Site.Menus.main -}}
=> {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML }}
{{ end }}
+
## {{ i18n "journalEntries" }}
+
{{ $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 -}}