Skip to content

Commit adb11be

Browse files
committed
[optimize] several details
1 parent 66a6ee0 commit adb11be

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"hexo-generator-index": "^0.2.1",
2323
"hexo-generator-slidehtml": "0.0.62",
2424
"hexo-generator-tag": "^0.2.0",
25-
"hexo-migrator-web": "^0.4.5",
26-
"hexo-permalink-pinyin": "^1.0.0",
25+
"hexo-migrator-web": "^0.4.7",
26+
"hexo-permalink-pinyin": "^1.1.0",
2727
"hexo-pwa": "^0.1.3",
2828
"hexo-reference": "^1.0.4",
2929
"hexo-renderer-ejs": "^0.3.1",
@@ -44,7 +44,7 @@
4444
}
4545
},
4646
"devDependencies": {
47-
"husky": "^3.0.1",
47+
"husky": "^3.0.4",
4848
"prettier": "^1.18.2"
4949
},
5050
"prettier": {

source

Submodule source updated 38 files

themes/Icarus/_config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ footer:
4141
Creative Commons:
4242
icon: fab fa-creative-commons
4343
url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
44+
Code of Conduct:
45+
icon: fas fa-balance-scale
46+
url: /profile/code-of-conduct/
4447
Fork on GitHub:
4548
icon: fab fa-github
4649
url: https://github.com/FreeCodeCamp-Chengdu/FreeCodeCamp-Chengdu.github.io

themes/Icarus/includes/helpers/page.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
const { resolve } = require('url');
2+
13
/**
24
* Helper functions for page/post.
35
*
@@ -96,7 +98,7 @@ module.exports = function (hexo) {
9698

9799
return this.url_for(
98100
hasThumbnail ?
99-
post.path + (post.thumbnail || post.photos[0]) :
101+
resolve(post.path, post.thumbnail || post.photos[0]) :
100102
'images/thumbnail.svg'
101103
);
102104
});

0 commit comments

Comments
 (0)