summaryrefslogtreecommitdiffstats
path: root/layouts/partials/scripts-end.html
diff options
context:
space:
mode:
authoramzrk22020-05-29 16:14:13 +0800
committeramzrk22020-05-29 16:14:13 +0800
commitd47a131ca03b813b26345c752d41cc8999a646ce (patch)
tree0dbc01aab47dabaadcd4ef122cd041d8efb2182b /layouts/partials/scripts-end.html
parent057d782d47a7418147177647e06efd3fa68b2cb0 (diff)
downloadhugo-theme-fuji-d47a131ca03b813b26345c752d41cc8999a646ce.tar.gz
hugo-theme-fuji-d47a131ca03b813b26345c752d41cc8999a646ce.tar.bz2
hugo-theme-fuji-d47a131ca03b813b26345c752d41cc8999a646ce.zip
Fix highlight.js
Diffstat (limited to 'layouts/partials/scripts-end.html')
-rw-r--r--layouts/partials/scripts-end.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/scripts-end.html b/layouts/partials/scripts-end.html
index d82ab58..ea37e5c 100644
--- a/layouts/partials/scripts-end.html
+++ b/layouts/partials/scripts-end.html
@@ -72,13 +72,15 @@
background: mediumTheme
});
- // init highlight.js
hljs.initHighlightingOnLoad();
// remove empty ul in toc if article only have ## and ###
if ($('.sidebar-toc ul ul').length > 0 && $('.sidebar-toc ul ul li').text() === '') {
$('.sidebar-toc ul ul').hide();
}
+
+ // init highlight.js
+ hljs.initHighlighting();
</script>
{{ if and (and (ne .Params.noComments true) (.IsPage)) (.Site.Params.utterancesRepo) }}