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

How enable the dark-theme #66

Closed
leandrolmb opened this issue Jul 26, 2021 · 6 comments
Closed

How enable the dark-theme #66

leandrolmb opened this issue Jul 26, 2021 · 6 comments

Comments

@leandrolmb
Copy link

leandrolmb commented Jul 26, 2021

Hello,

how do i turn on dark mode (showing and clicking the moon icon)? Also and make the default dark-mode page?

Tks

@dataCobra
Copy link
Owner

dataCobra commented Jul 26, 2021

Hi @leandrolmb,

dark-mode is activated by pressing the moon icon and deactivated when pressing the sun icon. The dark-mode stays activated when you pressed the moon-icon.

To make the dark mode default, set .Site.Params.darkmode to true.

@dataCobra
Copy link
Owner

Thanks for pointing out that there is no default dark-mode.

I've committed some changes so it is possible to make the darkmode the default.

If you want to know how, use the latest version of Vitae and check the config.toml in the examples/ folder.

@leandrolmb
Copy link
Author

Oh ok, I would comment that I wasn't finding it. I will test it, thanks.

@dataCobra
Copy link
Owner

Please give me feedback if it worked for you. So I can close the issue. 👍

@leandrolmb
Copy link
Author

Working!

Just a little detail at config.toml example file:

change the seURL = "http://example.org/" to 'ba'seURL = "http://example.org/" first line.

cause this little problem:

http

Thanks!!

@dataCobra
Copy link
Owner

@leandrolmb yeah I found this issue while changing the config.toml and fixed it already.

But I forgot to add it to the release... Thanks for pointing this out. 👍

I'll close this issue 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