aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/metadata.html
blob: 77373f92b5491c20e46af71c1192f4d0b1e38fd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}

<p class="f6 lh-copy mv0 ph4 pv2">By {{ range .Params.authors }} {{ . }} {{ end }}
<br/>
<i class="far fa-calendar"></i>
<time class="f6 lh-copy mv0" datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
|
{{ .ReadingTime }} mins read
{{ with .Params.tags }}
| <i class="fas fa-tags"></i>
    {{ range . }}
    {{ $href := print (absURL "tags/") (urlize .) }}
    <a class="link underline light-gray" href="{{ $href }}">{{ . }}</a>
    {{ end }}
{{ end }}
{{ with .Params.categories }}
| <i class="fas fa-bookmark"></i>
    {{ range . }}
    {{ $href := print (absURL "tags/") (urlize .) }}
    <a class="link underline light-gray" href="{{ $href }}">{{ . }}</a>
    {{ end }}
{{ end }}
</p>