Describe the bug
I am unable to toggle between light and dark modes on my website.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The theme should be able to be toggled between light and dark mode.
Desktop (please complete the following information):
hugo version if unsure)Hi there,
I just cloned your repo and tried it locally. I was able to reproduce the same problem.
Adjust your makefile from:
hugo server -D --navigateToChanged --verbose --layoutDir=layouts/anatole
to
hugo server -D --navigateToChanged --verbose
The layoutDir parameter shouldn't be necessary because you already defined the theme in the config.toml.
Thanks!
I was trying to fix the date formatting and such I used (since I have several custom layouts in the layouts/anatole dir) - while removing the layoutDir=layouts/anatole section from the Makefile fixed the theme switching issue, now I'm unable to use any of my custom layouts. Do you have any ideas?
For some reason the layouts directory had gotten deleted from the remote. Re-adding that fixed it. No idea why it had gotten deleted, but it did.
For some reason it's started acting up again - I have no idea why. I'm so sorry about the back and forth here.
For some reason it was somethingin my head.html file. No idea what could have caused it, but for some reason I fixed it. Sorry again!