blob: 4beb9eafc4a1727800fdb035cee1b844600c44edaa763717f6c1b264ef433e76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{{ define "main" -}}
=> / {{ emojify ":link:" | safeHTML }} Return to homepage
# {{ .Type | singularize | humanize | safeHTML }} "{{ .Title | safeHTML }}"
## Feeds
=> {{ .RelPermalink | replaceRE `(?m)index.gmi$` "atom.xml" | safeHTML }} {{ emojify ":link:" | safeHTML }} Atom Feed
## Journal Entries
{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }}
{{- range first $entriesMinusOne .Data.Pages.ByPublishDate.Reverse }}
{{- partial "metadata.gmi" . }}
{{ end }}
{{- if gt (len .Data.Pages) 1 }}
{{- range last 1 .Data.Pages.ByPublishDate.Reverse }}
{{- partial "metadata.gmi" . }}{{ end }}
{{- end }}
{{- end }}
|