blob: 8679be693104ad0a98993b3124b48f1348b0d80b (
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
{{ $dateFormat := .Site.Params.dateFormat | default ":date_medium" }}
<div class="text-sm my-0 px-8 py-2">
{{ T "author_by" }} —
{{ range .Params.authors }}
{{ $name := . }}
{{ $path := printf "/%s/%s" "authors" ( $name | urlize ) }}
{{ with $.GetPage $path }}
{{ if isset .Params "name" }}
<a class="underline" href="{{ .RelPermalink }}">
{{- default $name .Params.name -}}
</a>
{{ else }}
{{ $name }}
{{ end }}
{{ else }}
{{ $name }}
{{ end }}
{{ end }}
<br />
<i class="far fa-calendar"></i>
<time datetime="{{ $dateTime }}">
{{ time.Format $dateFormat .Date }}
</time>
{{ with .Params.location }}
—
{{ . }}
{{ end }}
{{ if eq .Section "post" }}
|
{{ .ReadingTime }}
{{ i18n "minute_read" }}
{{ end }}
{{ with .GetTerms "tags" }}
|
<a href="/tags" class="text-lime-500 px-1">
<i class="fas fa-tags"></i>
</a>
{{ range . }}
<a class="underline" href="{{ .RelPermalink }}">
{{- .Title -}}
</a>
{{ end }}
{{ end }}
{{ with .GetTerms "categories" }}
|
<a href="/categories" class="text-lime-500 px-1">
<i class="fas fa-folder-open"></i>
</a>
{{ range . }}
<a class="underline" href="{{ .RelPermalink }}">
{{- .Title -}}
</a>
{{ end }}
{{ end }}
</div>
|