summaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.gmi
blob: 398449420c2718421b8265c5bdbbb2cabca2697773c09277cef74ca6888071a8 (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 }}

{{ 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 }}{{ end }}