-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathindex.html
32 lines (32 loc) · 1.08 KB
/
index.html
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
{{ define "main" }}
<main class="main list" role="main">
{{- with .Title }}
<header class="main__header">
<h1 class="main__title">{{ . }}</h1>
</header>
{{- end }}
{{- if .Site.Params.belowTitlePartial }}{{ partial .Site.Params.belowTitlePartial . }}{{ end }}
{{- with .Content }}
<div class="content main__content clearfix">
{{ . }}
</div>
{{- end }}
{{- if .Site.Params.indexPager -}}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }}
{{- range $paginator.Pages }}
{{- .Render "summary" }}
{{- end }}
{{- if and (eq $paginator.TotalNumberOfElements 0) (not $.Content) }}
<div class="warning">
{{ partial "svg/files.svg" (dict "class" "warning__icon") }}
<h3 class="warning__headline">{{ T "noposts_warning_title" | safeHTML }}</h3>
<div class="warning__text">
<p class="warning__description">{{ T "noposts_warning_description" | safeHTML }}</p>
<p class="warning__tip">{{ T "noposts_warning_tip" | safeHTML }}</p>
</div>
</div>
{{- end }}
{{ partial "pagination.html" . }}
{{- end }}
</main>
{{ end }}