Cleanup to keep darkreader in as few files as possible.

This commit is contained in:
donfiguerres 2022-06-03 15:51:33 +08:00
parent 614902393c
commit 7d328983c0
5 changed files with 7 additions and 14 deletions

View file

@ -1,4 +1,7 @@
<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">