sunt-programator/CodeIT

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

Programazing opened this issue · 2 comments

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

Hi,

Same issue here.

ya i also have this issue.