zeon-studio / hugoplate

Hugoplate is a free starter template built with Hugo and TailwindCSS that will save you hours of work.
https://zeon.studio/preview?project=hugoplate
MIT License
851 stars 236 forks source link

Remove dark mode script does not remove theme switcher #112

Closed Frank3K closed 5 months ago

Frank3K commented 7 months ago

What is your Hugo Extended Version

hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended

What is your Go Version

go version go1.22.1

What is your Node.js Version

v20.2.0

Check for Existing Issues

Expected Behavior

When running the remove-darkmode script, the theme switcher is not removed.

Steps to Reproduce

  1. Install the theme according to the instructions in the README.
  2. Run yarn run remove-darkmode.
  3. Build the site.
  4. Observe that the theme switcher (which enables the user to toggle between light and dark modes) is still present.

Code Reproduction URL

No response

Additional Information

The following things should be removed:

  1. The SCSS for the theme-switcher (src).
  2. The theme-switcher HTML (src).
  3. The use of the partial in the header (src).
  4. The darkmode logo (src).
  5. The darkmode logo reference in params.toml (src).
  6. Theme switcher config in params.toml (src).
tfsomrat commented 5 months ago

Hey @Frank3k, thanks for creating this issue. we updated the script. now it will work perfectly.

Frank3K commented 5 months ago

Thanks for fixing, appreciated.