blob: f5cca3b0b997b10fede38120e78457dd82c5f1fd6c777a855a32be82ee250846 (
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 }}
|