This commit is contained in:
Evgeny Kuznetsov 2020-06-04 09:15:54 +03:00
parent 073456b675
commit 1d99308281
No known key found for this signature in database
GPG Key ID: 79B2B092A63F5E6F
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
{{- if (.Site.Params.highlightjs) -}}
{{ if or ((not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)) }}
{{ if or (not (isset .Params "highlight")) (and (isset .Params "highlight") .Params.highlight) }}
{{ $.Scratch.Set "hl_languages" (union (.Site.Params.highlightjslanguages) (.Params.highlightjslanguages)) }}
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
{{ with $.Scratch.Get "hl_languages" }}