diff options
author | jeffreytse <jeffreytse.mail@gmail.com> | 2020-10-11 16:32:35 +0800 |
---|---|---|
committer | jeffreytse <jeffreytse.mail@gmail.com> | 2020-10-11 16:32:44 +0800 |
commit | 20cd65babaa7a2adf548a8575e6c4d748bb04fd0 (patch) | |
tree | c2a50058c372f49a8ac48d20ac1c87a860b4fbc3 | |
parent | 66768c05006a24633439e33590268dbf56081072 (diff) |
fix: wrong option name of night mode
-rw-r--r-- | _config.yml | 2 | ||||
-rw-r--r-- | _includes/extensions/theme-toggle.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/_config.yml b/_config.yml index 5833722..fc34587 100644 --- a/_config.yml +++ b/_config.yml @@ -79,7 +79,7 @@ yat: # theme_color: "#882250" # Night mode, default is "auto", "auto" is for auto nightshift (19:00 - 07:00), -# "mannual" is for mannual toggle, and "on/off" is for always on/off. +# "manual" is for manual toggle, and "on/off" is for always on/off. # night_mode: "auto" # If you want to link only specific pages in your header, uncomment diff --git a/_includes/extensions/theme-toggle.html b/_includes/extensions/theme-toggle.html index d426f65..df04c29 100644 --- a/_includes/extensions/theme-toggle.html +++ b/_includes/extensions/theme-toggle.html @@ -94,7 +94,7 @@ } else { handleThemeToggle(themeData.nightShift); } - } else if (nightModeOption == 'mannual') { + } else if (nightModeOption == 'manual') { handleThemeToggle(themeData.nightShift); } else { handleThemeToggle(nightModeOption == 'on'); |