aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.gmi
blob: 8fa1593adf905f136fda48ce96b3b6284857583257401e54c76f0f79f92dd0c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{ define "main" -}}
# {{ .Site.Params.indexTitle | safeHTML }}

{{ .Site.Params.indexIntro | safeHTML }}


## {{ 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 }}