From 20cd65babaa7a2adf548a8575e6c4d748bb04fd0 Mon Sep 17 00:00:00 2001 From: jeffreytse Date: Sun, 11 Oct 2020 16:32:35 +0800 Subject: fix: wrong option name of night mode --- _config.yml | 2 +- _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'); -- cgit v1.2.3