Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

[BUG] Theme changing back to dark from light when a new page is loaded #340

Open
Programazing opened this issue Dec 6, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@Programazing
Copy link
Contributor

Describe the bug

I've noticed that if I change the theme to light on any page and then switch to another page the theme goes back to being dark. It's that way on my website and the example website, but not the author's personal website.

I have defaultTheme set to "auto", but changing it to light or dark doesn't change the effect.

Expected behavior

I expect the website to stay dark or light depending on which is selected.

Screenshots

N/A

Build Environment

  • OS: Windows 11 Pro, Version 21H2, OS buildv22000.348
  • Theme version: 0.2.0
  • Hugo version:

hugo env:

hugo v0.89.4-AB01BA6E+extended windows/amd64 BuildDate=2021-11-17T08:24:09Z VendorInfo=gohugoio
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.17.2"

Preview Environment

  • OS: Windows 11 Pro, Version 21H2, OS buildv22000.348
  • Browser: Firefox 94.0.2 (64-bit)

Additional Information

@Programazing Programazing added the bug Something isn't working label Dec 6, 2021
@Nesousx
Copy link

Nesousx commented Feb 21, 2022

Hi,

Same issue here.

@miguelrdev
Copy link

ya i also have this issue.

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

No branches or pull requests

3 participants