diff --git a/layouts/partials/highlight-js.html b/layouts/partials/highlight-js.html
index 87c347d..93495f1 100644
--- a/layouts/partials/highlight-js.html
+++ b/layouts/partials/highlight-js.html
@@ -1,13 +1,12 @@
+{{- if (.Site.Params.highlightjs) -}}
{{ if or ((not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)) }}
{{ $.Scratch.Set "hl_languages" (union (.Site.Params.highlightjslanguages) (.Params.highlightjslanguages)) }}
- {{ if (.Site.Params.highlightjs) }}
-
+
{{ with $.Scratch.Get "hl_languages" }}
{{ range . }}
{{ end }}
{{ end }}
- {{ end }}
{{ $.Scratch.Delete "hl_languages" }}
{{ end }}
+{{- end -}}