Skip to content

Commit 5c673bb

Browse files
committed
[optimize] replace Highlight.js with Prism.js
[optimize] upgrade Upstream packages
1 parent b62a4d2 commit 5c673bb

File tree

4 files changed

+23
-10
lines changed

4 files changed

+23
-10
lines changed

_config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ post_asset_folder: true
3939
relative_link: false
4040
future: true
4141
highlight:
42-
enable: true
43-
line_number: true
44-
auto_detect: true
45-
tab_replace: true
42+
enable: false
43+
prism_plugin:
44+
mode: preprocess
45+
theme: okaidia
4646

4747
# Home page setting
4848
# path: Root path for your blogs index page. (default = '')

package.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
"doc": "source/_post/"
1111
},
1212
"hexo": {
13-
"version": "4.2.0"
13+
"version": "4.2.1"
1414
},
1515
"dependencies": {
1616
"cheerio": "^1.0.0-rc.3",
17-
"hexo": "^4.2.0",
17+
"hexo": "^4.2.1",
1818
"hexo-auto-category": "^0.2.0",
1919
"hexo-deployer-git": "^2.1.0",
2020
"hexo-generator-archive": "^1.0.0",
@@ -23,8 +23,9 @@
2323
"hexo-generator-index": "^1.0.0",
2424
"hexo-generator-slidehtml": "0.0.62",
2525
"hexo-generator-tag": "^1.0.0",
26-
"hexo-migrator-web": "^0.4.7",
26+
"hexo-migrator-web": "^1.0.3",
2727
"hexo-permalink-pinyin": "^1.1.0",
28+
"hexo-prism-plugin": "^2.3.0",
2829
"hexo-reference": "^1.0.4",
2930
"hexo-renderer-ejs": "^1.0.0",
3031
"hexo-renderer-marked": "^2.0.0",
@@ -45,10 +46,12 @@
4546
}
4647
},
4748
"devDependencies": {
48-
"husky": "^3.1.0",
49-
"prettier": "^1.19.1"
49+
"husky": "^4.2.5",
50+
"prettier": "^2.0.5"
5051
},
5152
"prettier": {
53+
"trailingComma": "none",
54+
"arrowParens": "avoid",
5255
"tabWidth": 2
5356
}
5457
}

source

Submodule source updated 247 files

themes/Icarus/source/css/common.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,13 @@ iframe, .embed-box {
3030
.content img {
3131
max-height: 80vh;
3232
}
33+
34+
.token.number {
35+
background-color: transparent;
36+
border-radius: 0;
37+
font-size: inherit;
38+
height: auto;
39+
min-width: auto;
40+
margin-right: auto;
41+
padding: 0;
42+
}

0 commit comments

Comments
 (0)