Bring back the initialization.

This commit is contained in:
donfiguerres 2022-06-03 18:17:28 +08:00
parent 83610fdeaa
commit 51e7626a62
5 changed files with 14 additions and 6 deletions

View file

@ -1,7 +1,4 @@
<li class="nav-item dropdown">
<!-- 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>
<a class="nav-link dropdown-toggle" href="#" id="themeSelector" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Theme</a>
<div class="dropdown-menu" aria-labelledby="themeSelector">