* Add default dark theme for modern browsers
This version is based on the DOM specification used by Firefox, Chrome,
and the new Edge. Since it is standards compliant it should work on
modern browsers, but dark mode won't be available on IE11 and maybe the
old Edge.
I have avoided the screen flash on loading the page, and toggling from
dark to light (or vice versa) both when dark
is default and when light is default.
Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
* Edit/improve as suggested by maintainer
* Improves documentation (README.md)
* Improves Go template logic for setting the default theme type
* Improves coding (and markdown) style
* Adds the new param to exampleSite/config.yaml for documentation
Signed-off-by: Daniel F. Dickinson <20735818+danielfdickinson@users.noreply.github.com>
* Adds i18n support for theme
* Adds a way for sites to have custom css.
This change adds a param to the theme (called customCss), which allows sites to
provide extra css under static/, so that they don't need to copy the theme's css
whole file.
If no custom css is in the params, this change is NOP.