diff --git a/_includes/extensions/theme-toggle.html b/_includes/extensions/theme-toggle.html index df04c29..623c425 100644 --- a/_includes/extensions/theme-toggle.html +++ b/_includes/extensions/theme-toggle.html @@ -81,7 +81,7 @@ handleThemeToggle(event.target.checked); }); - var nightModeOption = '{{ night_mode }}'; + var nightModeOption = '{{ night_mode }}' || 'auto'; nightModeOption = nightModeOption.toLowerCase(); if (nightModeOption == 'auto') {