blob: da1fe357ad5251d389c47130310e98e6796c611e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
Dark mode is a brand-new function introduced in 1.2.0.
If you don't like this feature, you can disable it.
## Disable Dark Mode
Add `disableDarkMode=true` to the section of `[param]` in your `config.toml`.
Then you will not see it.
## Automatically enable Dark Mode
Open `/static/js/journey.js`, and you will find this snippet.
(Currently at Line 78)
```javascript
if (night==""){
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
//this.toggleDarkMode();
}
```
And remove `//` from `this.toggleDarkMode();`, then your site will enter dark mode automatically, following browser's preference.
Feel free to raise an issue if you have some questions. :)
|