mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-12 18:15:31 +00:00
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
This commit is contained in:
1 parent
b631115926
commit
c7b71e6c4b
1 file changed
+2
@@ -47,6 +47,8 @@
|
||||
{{/* Initialise code highlighting. */}}
|
||||
{{ if $.Scratch.Get "highlight_enabled" }}
|
||||
<script>const code_highlighting = true;</script>
|
||||
{{ else }}
|
||||
<script>const code_highlighting = false;</script>
|
||||
{{ end }}
|
||||
|
||||
{{ if ne site.Params.search.engine 0 }}
|
||||
|
||||
Reference in new issue
Block a user