aboutsummaryrefslogtreecommitdiff
path: root/layouts/home.gmi
blob: a63c9f49de64634957980a0941b307b19e0132fe9e5c1cdeadbecbb6dfed1313 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{{ define "main" -}}
# {{ .Site.Params.indexTitle }}

{{ .Site.Params.indexIntro }}

{{- if .Site.Menus.main }}


## {{ i18n "navLinks" }}
{{ range .Site.Menus.main }}
=> {{ .URL }} {{ emojify ":link:" }} {{ .Name -}}
{{ end -}}

{{ end -}}

{{ $tagList := .Site.GetPage (lower (i18n "tags")) -}}
{{ if and $tagList $tagList.Pages }}


## {{ i18n "tags" }}

=> {{ $tagList.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "tagList" -}}

{{ end -}}

{{ with .OutputFormats.Get "Gemini_Atom" }}


## {{ i18n "feeds" }}

=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ i18n "atomFeed" -}}

{{ end -}}

{{ with (where .Site.RegularPages "Section" "entry").ByPublishDate.Reverse }}


## {{ i18n "journalEntries" -}}
{{ range . }}

{{ partial "metadata.gmi" . -}}
{{ end -}}

{{ end -}}

{{ end }}