Skip to content

Commit 7db6ea1

Browse files
committed
replace old urls; use unpkg for icons
1 parent 48227c8 commit 7db6ea1

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

_config.next.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ footer:
1111
icp: "京ICP备20010051号-8"
1212
scheme: Gemini
1313
menu:
14-
home: https://deepmodeling.org || fa fa-home
14+
home: https://deepmodeling.com || fa fa-home
1515
Blog: / || fa fa-blog
1616
Tutorial:
17-
default: https://tutorials.deepmodeling.org/ || fa fa-book
18-
Docs: https://docs.deepmodeling.org || fa fa-book
17+
default: https://tutorials.deepmodeling.com/ || fa fa-book
18+
Docs: https://docs.deepmodeling.com || fa fa-book
1919
Publications:
2020
default: /papers || fas fa-university
2121
Reviews: /reviews.html

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ timezone: Asia/Shanghai
1313

1414
# URL
1515
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
16-
url: https://deepmodeling.org/blog
16+
url: https://deepmodeling.com/blog
1717
root: /blog/
1818
permalink: :title/
1919
permalink_defaults:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"hexo-tag-publications": "0.2.6",
2828
"hexo-theme-next": "^8.11.1",
2929
"hexo-word-counter": "0.0.3",
30-
"jsdelivr_url": "0.0.1"
30+
"unpkg_url": "^0.0.1"
3131
},
3232
"devDependencies": {
3333
"hexo-yam": "6.0.0"

scripts/jsdelivr.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
const crypto = require('crypto');
2-
const { gh_url } = require("jsdelivr_url");
1+
const { npm_url } = require("unpkg_url");
32

43
hexo.extend.filter.register('after_generate', () => {
54
// remove all images
@@ -11,7 +10,7 @@ hexo.extend.filter.register('after_generate', () => {
1110
hexo.on('generateBefore', function () {
1211

1312
// icons
14-
const avatar_url = "https://avatars.githubusercontent.com/u/32671488?s=200&v=4";
13+
const avatar_url = npm_url("@njzjz/icons", "0.0.4", "logos/deepmodeling.png");
1514
hexo.theme.config.avatar.url = avatar_url;
1615
hexo.theme.config.favicon.small = avatar_url;
1716
hexo.theme.config.favicon.medium = avatar_url;

yarn.lock

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,7 @@ js-yaml@^4.1.0:
13101310
dependencies:
13111311
argparse "^2.0.1"
13121312

1313-
jsdelivr_url@0.0.1, jsdelivr_url@^0.0.1:
1313+
jsdelivr_url@^0.0.1:
13141314
version "0.0.1"
13151315
resolved "https://registry.yarnpkg.com/jsdelivr_url/-/jsdelivr_url-0.0.1.tgz#3a9c0440575ec092d88b403091b8b68d2c0df755"
13161316
integrity sha512-HjjyhWU8kG1Q1JsFf6D7wNF0REqUA8CMiBHHl0w5RW5uLVgdLK5UxzW5rwmorP8vxLNiNo3rjr+E4cpFb5gI/g==
@@ -2347,6 +2347,11 @@ unpipe@~1.0.0:
23472347
resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec"
23482348
integrity sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=
23492349

2350+
unpkg_url@^0.0.1:
2351+
version "0.0.1"
2352+
resolved "https://registry.yarnpkg.com/unpkg_url/-/unpkg_url-0.0.1.tgz#24ee5c07ee3651bad7bad62ad14470cc50b05a77"
2353+
integrity sha512-7S29fCCgE1FNR9UGlXzrE5FKDRinhL48TMZXBb+xjbQZY+b0LwRTxDFyfWnwtTj6wWoz39kIegxD9+ORh2AJ4g==
2354+
23502355
upper-case@^1.1.1:
23512356
version "1.1.3"
23522357
resolved "https://registry.yarnpkg.com/upper-case/-/upper-case-1.1.3.tgz#f6b4501c2ec4cdd26ba78be7222961de77621598"

0 commit comments

Comments
 (0)