aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.gmi
blob: e629fe75721af11d935f2aab99323a6260e05367dd4d8afe80e6bd5cf24e57ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{{ 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").ByPublishDate.Reverse) 1 }}
{{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- partial "metadata.gmi" . }}
{{ end }}{{- if gt (len .Data.Pages) 1 }}

{{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- partial "metadata.gmi" . }}{{ end }}
{{- end }}
{{- end }}