Skip to content

Commit

Permalink
Fix default highlighting (alshedivat#931)
Browse files Browse the repository at this point in the history
The default setting `media="none"` disables code highlighting. This
works OK when we have `enable_darkmode: true` in `config.yml` as the
code handling the dark/light theme switching takes care of setting
`media=""` for the preferred theme.
However, setting `enable_darkmode: false` prevents importing `theme.js`
which in turn prevents said change thus the default highlighting stays
disabled.
Setting `media=""` by default enables the default highlighting when
`enable_darkmode` is false.

Fixes alshedivat#929
  • Loading branch information
cmoralesmx authored Oct 10, 2022
1 parent b03a2ae commit e043f75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _includes/head.html
Git LFS file not shown

0 comments on commit e043f75

Please sign in to comment.