summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.gmi
blob: 92036a137cfcf48026153d581fa64df4b43d1beafa553176ff7a491fdc7b2268 (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 }} - {{ .ReadingTime }} 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 }} - {{ .ReadingTime }} minute read
=> .{{ .RelPermalink }} {{ .Title | safeHTML }}{{ end }}