blob: 566e19dfd3329ecbda77d7162cafb61fc69c33e7 (
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
|
{{ define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
<main class="index">
{{ if .Content }}
<article>
<header>
<h1>{{ .Title | emojify }}</h1>
{{ if .Params.cover }}
{{ partial "cover" . }}
{{ end }}
</header>
{{ partial "table-of-contents" . }}
{{ partial "processed-content" . }}
</article>
{{ else }}
<h1>{{ T "posts" }}</h1>
{{ partial "post-list" . }}
{{ partial "pagination" . }}
{{ end }}
</main>
{{ end }}
{{ define "svg-extra" }}
{{ if .Content }}
{{ partial "content-svg" . }}
{{ end }}
{{ end }}
|