Removed logic which did not work in hugo 72 anymore; not sure if highlightjs is now considered correctly
This commit is contained in:
parent
5046967a61
commit
9f58fbe8c6
1 changed files with 1 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
{{ if or ((not (isset .Params "highlight")) and ((isset .Params "highlight") .Params.highlight)) }}
|
||||
{{ if (isset .Params "highlight") }}
|
||||
{{ $.Scratch.Set "hl_languages" (union (.Site.Params.highlightjslanguages) (.Params.highlightjslanguages)) }}
|
||||
{{ if (.Site.Params.highlightjs) }}
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/highlight.min.js"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue