Skip to content

Commit

Permalink
Remove highlighting of hexo-theme-tree
Browse files Browse the repository at this point in the history
  • Loading branch information
seekstar committed Jan 18, 2023
1 parent b4cd733 commit 299bdce
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 85 deletions.
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,6 @@ pandoc:
- +intraword_underscores+strikeout+hard_line_breaks+emoji
- +shortcut_reference_links
extra:
- preserve-tabs: # note this colon!!
# - highlight-style: kate
# - css: https://cdn.jsdelivr.net/npm/pygments-css@1.0.0/github.min.css
4 changes: 2 additions & 2 deletions themes/tree/layout/_partial/head.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@

<%- css('css/main.css') %>
<%- css('https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.min.css') %>
<%- css('https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/darcula.min.css') %>
<!-- <%- css('https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/styles/darcula.min.css') %> -->
<%- css('https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css') %>

<%- js('https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js') %>
<%- js('https://cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js') %>
<%- js('https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js') %>
<!-- <%- js('https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.17.1/build/highlight.min.js') %> -->
<%- js('https://cdn.jsdelivr.net/npm/jquery-pjax@2.0.1/jquery.pjax.min.js') %>
<%- js('js/main.js') %>
<% if (theme.valine){ %>
Expand Down
8 changes: 4 additions & 4 deletions themes/tree/source/js/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
$(document).ready(function () {
hljs.initHighlightingOnLoad();
// hljs.initHighlightingOnLoad();
clickTreeDirectory();
serachTree();
pjaxLoad();
Expand Down Expand Up @@ -151,9 +151,9 @@ function pjaxLoad() {
{fragment: '#content', timeout: 8000});
$(document).on({
"pjax:complete": function (e) {
$("pre code").each(function (i, block) {
hljs.highlightBlock(block);
});
// $("pre code").each(function (i, block) {
// hljs.highlightBlock(block);
// });
// 添加 active
$("#tree .active").removeClass("active");
var title = $("#article-title").text().trim();
Expand Down
77 changes: 0 additions & 77 deletions themes/tree/source/lib/highlight/darcula.css

This file was deleted.

2 changes: 0 additions & 2 deletions themes/tree/source/lib/highlight/highlight.pack.js

This file was deleted.

0 comments on commit 299bdce

Please sign in to comment.