summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html7
-rw-r--r--layouts/_default/search.html2
-rw-r--r--layouts/_default/single.html2
3 files changed, 7 insertions, 4 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index c6a64e5..ac7b70f 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -5,7 +5,10 @@
{{ partial "head.html" . }}
</head>
-<body data-theme="auto">
+<body
+ data-theme="{{- if .Site.Params.defaultTheme -}}{{ .Site.Params.defaultTheme }}{{- else -}}auto{{- end -}}"
+ data-theme-auto='{{- if ne .Site.Params.defaultTheme "auto" -}}false{{- else -}}true{{- end -}}'
+ >
{{ partial "scripts-front.html" . }}
{{ partial "header.html" . }}
@@ -24,4 +27,4 @@
{{ partial "scripts-end.html" . }}
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/layouts/_default/search.html b/layouts/_default/search.html
index a2cdd4f..88c7021 100644
--- a/layouts/_default/search.html
+++ b/layouts/_default/search.html
@@ -36,4 +36,4 @@
</div>
{{ "<% } %>" | safeHTML }}
</script>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index cd2bd48..54b6934 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -28,4 +28,4 @@
{{ else if and (.Site.Params.utterancesRepo) (ne .Params.showComments false) }}
{{ partial "comment-utterances.html" . }}
{{ else }}{{ end }}
-{{ end }} \ No newline at end of file
+{{ end }}