Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/htr3n/hyde-hyde.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhtr3n <hoang.huy.tran@gmail.com>2020-06-05 03:51:19 +0300
committerhtr3n <hoang.huy.tran@gmail.com>2020-06-05 03:51:19 +0300
commitc03d5f48a763df031e200d9e9a92a46e86da56fb (patch)
tree0652d47db3fccf48472e68e1cefd353ee86fb671
parent80fe1bf4a9b6ca8aa67a2b7ffb26052a1307863e (diff)
Fix #122 due to the change of Go template since Hugo 0.71.1
More detail: https://discourse.gohugo.io/t/0-71-1-error-cant-give-argument-to-non-function/25928
-rw-r--r--layouts/partials/highlight-js.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/partials/highlight-js.html b/layouts/partials/highlight-js.html
index 87c347d..6f5e1ac 100644
--- a/layouts/partials/highlight-js.html
+++ b/layouts/partials/highlight-js.html
@@ -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>