hugo-theme-nostyleplease icon indicating copy to clipboard operation
hugo-theme-nostyleplease copied to clipboard

[Help]: Button to toggle dark mode

Open fockboi-lgtm opened this issue 2 years ago • 1 comments

Hello,

I was wondering if there's any way to add this feature of adding a button to toggle dark mode/light mode. I understand that this might not be in the interest of everyone, but I would appreciate any pointers on how to do the same.

Thanks

fockboi-lgtm avatar Feb 17 '23 16:02 fockboi-lgtm

Hello, Sorry for being late to reply. This feature might not be added since after some consideration I didn't figure out where the best place is to put the toggle button at and how the button should look like. Nevertheless, this feature is not hard to implement. Just add a button to toggle the a attribute of <body> between empty light and dark. Wish this would help.

hanwenguo avatar Feb 28 '23 02:02 hanwenguo