summaryrefslogtreecommitdiffstats
path: root/layouts/_default
diff options
context:
space:
mode:
authordsrkafuu2021-06-09 10:43:38 +0800
committerdsrkafuu2021-06-09 10:43:38 +0800
commit7fede1b36755c85c084cb99c73d36c9cb0b1e2fb (patch)
treece3abd30c22dcd5df9f904262c94611dfdac52ea /layouts/_default
parent787b7865fba31fd56009a85f214f829b9d85cc04 (diff)
downloadhugo-theme-fuji-7fede1b36755c85c084cb99c73d36c9cb0b1e2fb.tar.gz
hugo-theme-fuji-7fede1b36755c85c084cb99c73d36c9cb0b1e2fb.tar.bz2
hugo-theme-fuji-7fede1b36755c85c084cb99c73d36c9cb0b1e2fb.zip
feat: default theme
Diffstat (limited to 'layouts/_default')
-rw-r--r--layouts/_default/baseof.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 1009c84..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" . }}