From c7b71e6c4b1bb0640d1e76e847100a4e3f5f436e Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Sat, 7 Dec 2019 17:25:33 +0100 Subject: [PATCH] fix: console error when highlight disabled (#1455) If "hightlight" was disabled, the following error appeared in the console: Uncaught ReferenceError: code_highlighting is not defined --- layouts/partials/site_js.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/layouts/partials/site_js.html b/layouts/partials/site_js.html index 26b40290..c5ba3165 100644 --- a/layouts/partials/site_js.html +++ b/layouts/partials/site_js.html @@ -47,6 +47,8 @@ {{/* Initialise code highlighting. */}} {{ if $.Scratch.Get "highlight_enabled" }} + {{ else }} + {{ end }} {{ if ne site.Params.search.engine 0 }}