mirror of
https://github.com/yihui/hugo-xmin.git
synced 2024-12-25 14:43:32 +02:00
support highlight.js
This commit is contained in:
parent
b76b60eb94
commit
97c1b05b69
2 changed files with 9 additions and 0 deletions
|
@ -2,3 +2,11 @@
|
|||
<script src="//cdn.jsdelivr.net/combine/npm/katex/dist/katex.min.js,npm/katex/dist/contrib/auto-render.min.js,npm/@xiee/utils/js/render-katex.js" defer></script>
|
||||
|
||||
<script src="//cdn.jsdelivr.net/npm/@xiee/utils/js/center-img.min.js" defer></script>
|
||||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min.js"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/r.min.js"></script>
|
||||
|
||||
<script>
|
||||
hljs.configure({languages: []});
|
||||
hljs.initHighlightingOnLoad();
|
||||
</script>
|
||||
|
|
1
exampleSite/layouts/partials/head_custom.html
Normal file
1
exampleSite/layouts/partials/head_custom.html
Normal file
|
@ -0,0 +1 @@
|
|||
<link href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/styles/github.min.css" rel="stylesheet">
|
Loading…
Reference in a new issue