hexo配置

正确的package.json

主要解决 mathjax 公式显示bug

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "6.0.0"
},
"dependencies": {
"hexo": "^6.0.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-search": "^2.4.3",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-kramed": "^0.1.4",
"hexo-renderer-pug": "^2.0.0",
"hexo-renderer-stylus": "^2.0.1",
"hexo-server": "^2.0.0",
"hexo-theme-landscape": "^0.0.3",
"hexo-wordcount": "^6.0.1"
}
}

GitHub 443错误

OpenSSL SSL_connect: Connection was reset in connection to github.com:443

  • 方法一

    检查VPN端口号,并替换1087

1
2
git config --global http.proxy 127.0.0.1:1087
git config --global https.proxy 127.0.0.1:1087

​ 若配置过,撤销上述配置

1
2
git config --global --unset http.proxy
git config --global --unset https.proxy

下面是几个常用的git配置查看命令:

1
2
3
git config --global http.proxy #查看git的http代理配置
git config --global https.proxy #查看git的https代理配置
git config --global -l #查看git的所有配置