UW-Madison-DSI / uw-jekyll-theme

A UW theme for Jekyll based academic websites with the functionality of al-folio
https://uw-madison-dsi.github.io/uw-jekyll-theme/
MIT License
1 stars 3 forks source link

Dark mode is not supported #2

Closed finnkuusisto closed 1 year ago

finnkuusisto commented 1 year ago

In both FF and Chrome the page renders strangely if the system default is set to dark mode. This is not the case with the UW template, so is likely an al-folio/jekyll thing. Switching the browser to light mode and hard refreshing doesn't correct it for some reason. Capture

Likely related to a null reference that is happening in dark_mode.js as seen in console in the screenshot.

finnkuusisto commented 1 year ago

Setting enable_darkmode to false in _config.yml seems to solve the issue.

finnkuusisto commented 1 year ago

Closing as fixed with #4