From 5b588d8c942b784bd96c9bec18c315ced8bc3322 Mon Sep 17 00:00:00 2001 From: Carlos Morales Date: Mon, 10 Oct 2022 17:43:59 +0100 Subject: [PATCH] Fix default highlighting (#931) 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 #929 --- _includes/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/head.html b/_includes/head.html index 1661581a2720..3796eb38ea6c 100644 --- a/_includes/head.html +++ b/_includes/head.html @@ -11,7 +11,7 @@ - + {% if site.icon.size < 3 %}