This commit is contained in:
htr3n 2020-06-05 15:50:51 +10:00
parent 7570de8eb4
commit d0b58642c2

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" }}