blob: b97ef74dce2462b62d424f4680a7f8e7fb37e727448e02afc1a011a7997e286c (
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 }}
## 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 }}
|