summaryrefslogtreecommitdiffstats
path: root/layouts/_default/baseof.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/_default/baseof.html')
-rw-r--r--layouts/_default/baseof.html7
1 files changed, 5 insertions, 2 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>