summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.gmi
blob: 5e05721bf4b462d2687d73f5c4b4caf3771baf7bffe58bf6e4b9216d833047f1 (plain)
1
2
3
4
5
6
7
8
9
10
{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }}
{{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- partial "pageinfo.gmi" . }}
=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }}

{{ end }}

{{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- partial "pageinfo.gmi" . }}
=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ .Title | safeHTML }}{{ end }}