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

Dark to Light Mode Switcher #941

Closed
33masterman33 opened this issue May 26, 2024 · 2 comments
Closed

Dark to Light Mode Switcher #941

33masterman33 opened this issue May 26, 2024 · 2 comments

Comments

@33masterman33
Copy link

Hello, I've been building my portfolio and wanted to add the button to switch from dark to light mode. I could not figure out how to enable it in my config files.

Here is a screenshot of the button from the example site.
image

@hossainemruz
Copy link
Member

You only need to enable dark theme in your hugo.yaml file. Here,is an example: https://github.com/hugo-toha/hugo-toha.github.io/blob/b4192719c87f1be72763eff611c0ec28d31032e8/hugo.yaml#L83

@33masterman33
Copy link
Author

Thank you! I realized while i had added the darkmode setting it was not under features so it did not get applied. It's working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants