aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.html
blob: 92c0b8387c8692cc7700d4fe6e6d79a4dcb31b761601242a180ee615c3597158 (plain)
1
2
3
4
5
6
7
8
9
{{ range (where .Site.RegularPages.ByTitle "Section" "entry").ByPublishDate.Reverse -}}
{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" -}}
<article>
  <header>
    <p>{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read<br>
    <a href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
  </header>
</article>
{{ end }}