diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/scripts.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html index fb6285b..a89ad89 100644 --- a/layouts/partials/scripts.html +++ b/layouts/partials/scripts.html @@ -1,5 +1,9 @@ -<!-- js --> -<script src="{{ "lib/highlight/highlight.pack.js?v=20171001" | relURL }}"></script> +<!-- highlight.js --> +{{- if .Site.Params.highlightInClient -}} + <script src="{{ "lib/highlight/highlight.pack.js?v=20171001" | relURL }}"></script> +{{- end -}} + +<!-- core --> {{- if .Site.Params.publicCDN.enable }} {{ .Site.Params.publicCDN.jquery | safeHTML }} {{ .Site.Params.publicCDN.slideout | safeHTML }} |