Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed changing default color scheme in config, affecting the result #755

Merged
merged 1 commit into from
Apr 29, 2023

Conversation

mmzeynalli
Copy link
Contributor

Issue

#754 Changing default color scheme in config.yaml has no effect

Description

Upon debugging, I found that, in /assets/scripts/features/darkmode/darkreader.js file, darkreader object has attribute defaultcolorscheme not, defaultColorScheme, thus the following code always results in 'system' configuration.

const defaultColorScheme = darkreader.defaultColorScheme || 'system'

Test Evidence

image

Copy link
Member

@hossainemruz hossainemruz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @mmzeynalli

@hossainemruz hossainemruz added bug Something isn't working automerge labels Apr 29, 2023
@kodiakhq kodiakhq bot merged commit 83d10c5 into hugo-toha:main Apr 29, 2023
6 of 10 checks passed
@mmzeynalli
Copy link
Contributor Author

My pleasure) Thanks for sharing such a wonderful template!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants