blob: 727e4cd93f99722aa1d0ab7588d7e92b1e43791f (
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
|
{{ define "main" }}
<main>
<article>
<header>
<h1>{{ .Title | emojify }}</h1>
{{ if or .Params.categories .Params.tags }}
<div class="terms">
<ul>
{{- range sort (.GetTerms "categories") ".LinkTitle" "asc" -}}
<li class="category"><a class="btn" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end -}}
{{- range sort (.GetTerms "tags") ".LinkTitle" "asc" -}}
<li><a class="btn" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{- end -}}
</ul>
</div>
{{- end -}}
{{ if not .Date.IsZero }}
<p>
{{ if eq .PublishDate .Lastmod }}
{{ T "publishedOn" }} <time datetime="{{ .PublishDate.Format "2006-01-02" }}">{{ .PublishDate.Format "2006-01-02" }}</time>
{{ else }}
{{ T "lastUpdatedOn" }} <time datetime="{{ .Lastmod.Format "2006-01-02" }}">{{ .Lastmod.Format "2006-01-02" }}</time>
{{ end }}
</p>
{{ end }}
{{ if .Params.cover }}
{{ partial "cover" . }}
{{ end }}
</header>
{{ partial "table-of-contents" . }}
{{ partial "processed-content" . }}
</article>
</main>
{{ end }}
|