From 5046967a61426fad7dd125bae1ca45645a0f9264 Mon Sep 17 00:00:00 2001 From: Julian Stier Date: Tue, 24 Mar 2020 19:54:14 +0100 Subject: [PATCH] Fixing hightlight-js embedding error 'hljs is not defined' when highlightjs is not configured in hugo --- layouts/partials/highlight-js.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layouts/partials/highlight-js.html b/layouts/partials/highlight-js.html index 87c347d..361d860 100644 --- a/layouts/partials/highlight-js.html +++ b/layouts/partials/highlight-js.html @@ -7,12 +7,12 @@ {{ end }} {{ end }} + {{ end }} - {{ $.Scratch.Delete "hl_languages" }} {{ end }}