blob: eaadeded273eae535019b5b14ea2ad0f4d5ce230 (
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
|
{{ 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>{{ .Title | emojify | default (T "posts") }}</h1>
{{ partial "post-list" . }}
{{ partial "pagination" . }}
{{ end }}
</main>
{{ end }}
|