blob: c7135f801ae72a4fc2bef240b2f2a60beb43409d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{{- define "main" }}
{{- if not .IsHome | and .Title }}
<header>
<h1>{{ .Title }}</h1>
{{- partial "breadcrumbs.html" . }}
{{- if .Params.Date }} <strong>{{ .Date.Format "2006-01-02" }}</strong>{{- end }}
</header>
{{- end }}
{{- if .Params.noindex }}
<main>
{{- else }}
<main data-pagefind-body>
{{- end }}
{{- if .Params.external_links }}
<div class="links">
{{- range .Params.external_links }}
<a href="{{ .url | absURL }}">{{ .name }}</a>
{{- end }}
</div>
{{- end }}
{{ .Content }}
</main>
{{- end }}
|