aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/metadata.html
blob: 36ae6fb62292467d8bba9c62f0334a239f438a98a64922727ccd424020e77c4a (plain)
1
2
3
4
5
6
7
8
9
{{ range (where .Site.RegularPages.ByTitle "Section" "post").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 }}