cupper-hugo-theme/layouts/partials
Daniel F. Dickinson 87c4c8dfbd
Add default dark theme for modern browsers (#56)
* 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>
2021-08-16 21:35:09 -05:00
..
disqus-js-common.js IE friendly remove method 2019-03-08 12:09:32 -06:00
disqus-js-main.js Only load disqus comments on button click 2019-03-07 14:13:56 -06:00
disqus.html Custom css and localization support (#28) 2020-06-01 13:47:51 -05:00
footer.html config option to show theme switcher 2021-01-10 13:36:21 -06:00
google-analytics-async.html Shortcode overhaul 2019-02-12 23:52:29 -06:00
head.html Add default dark theme for modern browsers (#56) 2021-08-16 21:35:09 -05:00
header.html new site param: logoAlt 2021-05-16 01:44:41 -05:00
katex.html Add Katex support 2019-04-02 20:59:56 -05:00
nav.html Custom css and localization support (#28) 2020-06-01 13:47:51 -05:00
noscript.html prevent white flash on page load when dark theme is persisted 2020-11-23 22:39:04 -06:00
script.html prefer rel over abs 2020-11-24 20:51:01 -06:00
svg.html Reorganize 2019-01-31 18:19:20 -06:00
toc.html Custom css and localization support (#28) 2020-06-01 13:47:51 -05:00