fix style regressions (code was never actually using Hack font I think..?)

and allow default theme (light or dark) to be set in Hugo config and reflected in both HTML & JS
This commit is contained in:
2020-07-07 10:07:46 -04:00
parent d970c031a5
commit 48eea4ce98
7 changed files with 44 additions and 71 deletions
+2 -1
View File
@@ -17,7 +17,8 @@
var light = "light";
// which class is <body> set to initially?
var default_theme = light;
// eslint-disable-next-line
var default_theme = "{{ .Site.Params.defaultTheme }}";
// use an element with class `dark-mode-toggle` to trigger swap when clicked
var toggle = doc.querySelector(".dark-mode-toggle");