Skip to content

Commit b1e8498

Browse files
committed
merge boilerplate to gain native highlighting instead of highlight.js
2 parents d2de545 + 2994284 commit b1e8498

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

_includes/footer.html

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,27 @@
106106
}
107107
</script>
108108

109-
<!-- Highlight.js -->
109+
<!--
110+
Because of the native support for backtick-style fenced code blocks
111+
right within the Markdown is landed in Github Pages,
112+
From V1.6, There is no need for Highlight.js,
113+
so Huxblog drops it officially.
114+
115+
- https://github.com/blog/2100-github-pages-now-faster-and-simpler-with-jekyll-3-0
116+
- https://help.github.com/articles/creating-and-highlighting-code-blocks/
117+
-->
118+
<!--
119+
<script>
120+
async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
121+
hljs.initHighlightingOnLoad();
122+
})
123+
</script>
124+
<link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
125+
-->
126+
127+
128+
<!-- jquery.tagcloud.js -->
110129
<script>
111-
async("http://cdn.bootcss.com/highlight.js/8.6/highlight.min.js", function(){
112-
hljs.initHighlightingOnLoad();
113-
})
114130
// only load tagcloud.js in tag.html
115131
if($('#tag_cloud').length !== 0){
116132
async("/js/jquery.tagcloud.js",function(){
@@ -122,7 +138,6 @@
122138
})
123139
}
124140
</script>
125-
<link href="http://cdn.bootcss.com/highlight.js/8.6/styles/github.min.css" rel="stylesheet">
126141

127142
<!--fastClick.js -->
128143
<script>

0 commit comments

Comments
 (0)