diff options
author | dsrkafuu | 2021-06-09 10:43:38 +0800 |
---|---|---|
committer | dsrkafuu | 2021-06-09 10:43:38 +0800 |
commit | 7fede1b36755c85c084cb99c73d36c9cb0b1e2fb (patch) | |
tree | ce3abd30c22dcd5df9f904262c94611dfdac52ea /layouts/_default | |
parent | 787b7865fba31fd56009a85f214f829b9d85cc04 (diff) | |
download | hugo-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.html | 5 |
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" . }} |