summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.gmi
blob: c3d7af44d2980b002e092e24a954bd7cd17151680113b745caa0a9de4330dc39 (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:" | safeHTML }} {{ .Title | safeHTML }}

{{ end }}

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