Added invisible element to hack theme initialization.
This commit is contained in:
parent
4254d03876
commit
b754a9ce85
5 changed files with 18 additions and 5 deletions
3
layouts/partials/helpers/darkmode.html
Normal file
3
layouts/partials/helpers/darkmode.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
<!-- This is a 'hack' for initializing the color scheme selection. See /js/darkmode.js -->
|
||||
<div id="themeInitialization" style="display: none;"
|
||||
default-theme=" {{ site.Params.darkTheme.default }} "></div>
|
Loading…
Add table
Add a link
Reference in a new issue