CodeIT icon indicating copy to clipboard operation
CodeIT copied to clipboard

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

Open Programazing opened this issue 3 years ago • 2 comments
trafficstars

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 avatar Dec 06 '21 19:12 Programazing

Hi,

Same issue here.

Nesousx avatar Feb 21 '22 08:02 Nesousx

ya i also have this issue.

miguelrdev avatar Mar 06 '22 00:03 miguelrdev