summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.gmi
blob: b697ea074fd01dab96697970d789e997e6164ff2086d8a70cb7ecdaedb0afd3a (plain)
1
2
3
4
5
6
7
8
9
10
11
{{ $entriesMinusOne := sub (len (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse) 1 }}
{{- range first $entriesMinusOne (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
📆 {{ .PublishDate.Format $dateFormat | safeHTML }} | ⏱️  {{ .ReadingTime | safeHTML }} minute read
=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}

{{ end }}
{{- range last 1 (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse }}
{{- $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
📆 {{ .PublishDate.Format $dateFormat | safeHTML }} | ⏱️  {{ .ReadingTime | safeHTML }} minute read
=> .{{ .RelPermalink }} 🔗 {{ .Title | safeHTML }}{{ end }}