rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.46k stars 769 forks source link

Add dark theme #410

Open Sabering1 opened 1 year ago

Sabering1 commented 1 year ago

it would be awesome if there was a option in config.toml to change the theme to dark like

defaultTheme = Dark / Light

it sucks for me cuz i have to edit the entire theme just for the dark theme to be applied.

wangweiomg commented 1 year ago

If you need a blink cilck , please: under [params] in your config, you need "enableThemeToggle = true" for the Theme Toggle to appear.

see: https://github.com/rhazdon/hugo-theme-hello-friend-ng/issues/321

Sabering1 commented 1 year ago

Im aware that, but im talking about forcing dark theme on my website, i found a way to force it pretty easy, still thank you for your comment mate!

coldnfire commented 1 year ago

Hello,

The way that i found is: vim assets/js/main.js

Replace line 10: const chosenThemeIsDark = chosenTheme == "dark";

with: const chosenThemeIsDark = chosenTheme == "dark" || !chosenTheme;

Take care ;)

DragonSerW commented 10 months ago

Hello Djordje! I ask you to make the dark template absolutely black, not just dark. It is useful for OLED screens.