-
-
Notifications
You must be signed in to change notification settings - Fork 161
/
baseof.html
37 lines (37 loc) · 1.56 KB
/
baseof.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
33
34
35
36
37
<!doctype html>
{{- $color := default "auto" $.Site.Params.color }}
{{- if not (in (slice "light" "dark" "auto") $color) }}
{{- $color = "auto" }}
{{- end }}
<html class="position-relative" itemscope itemtype="http:https://schema.org/WebPage" lang="{{ .Lang }}"
data-theme="{{ $color }}" {{/* TODO: remove in v1 */}}
data-bs-theme="{{ $color }}"
{{- with $.Site.Language.LanguageDirection }} dir="{{ . }}"{{ end }}
{{- with $.Site.Params.palette }} data-palette="{{ replace . " " "-" }}"{{ end }}>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{{- block "title" . -}}{{- partial "head/title" . -}}{{- end -}}</title>
{{- partial "head.html" . -}}
{{- block "head-end" . -}}{{- end -}}
{{- partial "hooks/head-end" . -}}
</head>
<body>
{{- $bootstrapScript := resources.Get "bootstrap/template.js" | resources.ExecuteAsTemplate "js/bootstrap.js" . }}
{{- if hugo.IsProduction }}{{ $bootstrapScript = $bootstrapScript | minify }}{{ end }}
<script>
{{ $bootstrapScript.Content | safeJS }}
</script>
{{- partial "header.html" . }}
{{- partial "hooks/main-begin" . }}
<main class="{{- partial "helpers/fullwidth" (dict "Page" . "Output" "container" "FullWidthOutput" "container-fluid") -}}">
<div class="row content">
{{- partialCached "noscript" . .Language.Lang }}
{{- block "content" . }}{{ end }}
</div>
</main>
{{- partial "hooks/main-end" . }}
{{- partial "footer.html" . }}
{{- partial "body-end" . }}
</body>
</html>