Skip to content

Hinode Module to automatically trigger Bootstrap dark mode.

License

Notifications You must be signed in to change notification settings

anoduck/mod-alwaysdark

Repository files navigation

Hinode Module - Template

A template to define a Hugo module compatible with Hinode

About

Logo

Hinode is a clean blog theme for Hugo, an open-source static site generator. Hinode is available as a template, and a main theme. Visit the Hinode documentation site for installation instructions.

Mod-AlwaysDark

Hinode is pretty incredible as it is, and as we all know, allows users to choose between viewing the website in either dark or light mode. But, what if you wanted to force your website to remain in dark mode permanently? You would either have to tinker with hinode's sass configuration and create your own color scheme, or you would have to run a little javascript in the background and allow javascript to toggle on the dark mode feature for you every time. We preferred the latter choice, so we hacked away and created a module to do this.

Contributing

This module uses semantic-release to automate the release of new versions. The package uses husky and commitlint to ensure commit messages adhere to the [Conventional Commits] conventionalcommits specification. You can run npx git-cz from the terminal to help prepare the commit message.

Configuration

You will need to have dark mode enabled in config/_default/params.toml by setting enableDarkMode = true.

About

Hinode Module to automatically trigger Bootstrap dark mode.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •