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

View file

@ -1,5 +1,5 @@
{{- if (.Site.Params.highlightjs) -}} {{- 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)) }} {{ $.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> <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
{{ with $.Scratch.Get "hl_languages" }} {{ with $.Scratch.Get "hl_languages" }}