blob: ea867d2c1d041a808c53ddd2d47f8c282c6198f459fdb3e2e8f4b405c592c950 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
{{ define "main" }}
{{- if .Site.Params.indexTitle }}
# {{ .Site.Params.indexTitle | safeHTML }}
{{- end }}
{{- if .Site.Params.indexIntro }}
{{ .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 -}}
{{ end }}
|