diff options
author | amzrk2 | 2020-05-29 16:14:13 +0800 |
---|---|---|
committer | amzrk2 | 2020-05-29 16:14:13 +0800 |
commit | d47a131ca03b813b26345c752d41cc8999a646ce (patch) | |
tree | 0dbc01aab47dabaadcd4ef122cd041d8efb2182b /layouts/partials/scripts-end.html | |
parent | 057d782d47a7418147177647e06efd3fa68b2cb0 (diff) | |
download | hugo-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.html | 4 |
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) }} |