aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.gmi
blob: ab4fdb4f8a145cbde184c366d8853235529380f3e7464fcd0061a1065a6a80e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ define "main" }}
# {{ .Site.Params.indexTitle | safeHTML }}
{{ .Site.Params.indexIntro | safeHTML }}

## Navigation Links
{{ range .Site.Menus.main -}}
=> {{ .URL }} {{ emojify ":link:" | safeHTML }} {{ .Name | safeHTML }}
{{ end }}
## Journal Entries
{{ $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 }}