-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Toggle light/dark doesn't work with web server #17
Comments
Hi Colin. Thanks for providing all the details. Thanks for checking past issues prior to creating this one. I am able to reproduce this issue. I am investigating it. It may take some to implement a fix. |
What is the cause? I have diffed the temp dir created by |
Thanks for working on it ☕ |
Hi Colin. Thanks for supporting my work. When I clone your repo locally, the problem vanishes (see the screen recording below). But when I use, GitHub codespace to develop/test, the problem appears. This is strange. 2023-03-30_23-22-36.mp4 |
Where is https://colin.cafe/ hosted? |
Hi @ColinMaudry . It's a small mistake, but took a lot of time to identify 😄. The problem is that This is your This is the hugo-blog-awesome/exampleSite/config.toml Lines 34 to 43 in ce9f89b
Please feel free to close this issue, if this solves your problem. |
On a side note, I learnt something new while working on this issue. I was wondering why in the above comment, the lines referenced from the theme's I navigated to GitHub docs, and learnt that:
|
I had the same issue. For me it was solved when I fixed the domain from: |
Hi @ColinMaudry , did #17 (comment) fix the dark mode toggle issue? |
It did, thanks! |
Describe the bug
I have checked #16 and my baseUrl is fine :)
The toggle works when I run the blog with
hugo server
.It doesn't when I generate the static files with
hugo
and run the site with an HTTP server (nginx or http-server node module).I could reproduce with the example site.
My website is deployed here: https://colin.cafe/#
The source code is here: https://github.com/ColinMaudry/colin.cafe
Steps to reproduce
Expected behavior
When clicking on the sun icon the theme should switch to dark.
Device information (please complete the following information):
The text was updated successfully, but these errors were encountered: