blob: 7b4520af5d67b65380374c537f3d8f6cc379c4a9966d845f640079274347afa0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{{ 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 }}
|