blob: 634eb8dc82ec195cd5dbe8fa8110c02872e43039c085b508b8f14dc4660e642c (
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.Home.RelPermalink | replaceRE `(?m)index.gmi$` "" }} {{ emojify ":link:" | safeHTML }} {{ i18n "returnHome" }}
# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}"
## {{ i18n "feeds" }}
=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} {{ i18n "atomFeed" }}
## {{ i18n "journalEntries" }}
{{ $entriesMinusOne := sub (len .Data.Pages) 1 -}}
{{ range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . }}
{{ end -}}
{{ range last 1 .Data.Pages.ByPublishDate.Reverse -}}
{{ partial "metadata.gmi" . -}}
{{ end -}}
{{ end }}
|