2019年9月30日,本博客升级了相关库,具体信息如下:
库 |
现有版本 |
原有版本 |
node |
8.11.2 |
8.11.2 |
hexo-cli |
2.0.0 |
1.1.0 |
hexo |
3.9.0 |
3.2.2 |
hexo-theme-next |
7.4.0 |
6.3.0 |
更新内容
- 博客新增版本记录
- 新增 pjax 特性
- 新增 github Banner
- 新增相关文章模块
- 更新正文字体大小
升级步骤
依赖库更新
和正常 Node 项目一致,使用 npm 更新即可。
更新全局 hexo-cli
进入博客目录
查看可升级的包:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| > npm outdated Package Current Wanted Latest Location hexo 3.2.2 3.9.0 3.9.0 Kinegratii-blog hexo-deployer-git 0.2.0 0.2.0 2.0.0 Kinegratii-blog hexo-generator-archive 0.1.4 0.1.5 1.0.0 Kinegratii-blog hexo-generator-category 0.1.3 0.1.3 1.0.0 Kinegratii-blog hexo-generator-feed 1.2.0 1.2.2 2.0.0 Kinegratii-blog hexo-generator-index 0.2.0 0.2.1 1.0.0 Kinegratii-blog hexo-generator-searchdb 1.0.3 1.0.8 1.0.8 Kinegratii-blog hexo-generator-sitemap 1.1.2 1.2.0 1.2.0 Kinegratii-blog hexo-generator-tag 0.2.0 0.2.0 1.0.0 Kinegratii-blog hexo-renderer-ejs 0.2.0 0.2.0 1.0.0 Kinegratii-blog hexo-renderer-marked 0.2.11 0.2.11 2.0.0 Kinegratii-blog hexo-renderer-stylus 0.3.1 0.3.3 1.1.0 Kinegratii-blog hexo-server 0.2.0 0.2.2 1.0.0 Kinegratii-blog hexo-symbols-count-time 0.4.4 0.4.4 0.6.1 Kinegratii-blog hexo-wordcount 2.0.1 2.0.1 6.0.1 Kinegratii-blog
|
全局安装 npm-check工具
1
| npm install -g npm-check
|
更新所有包
1
| npm-check -u --registry https://registry.npm.taobao.org
|
升级后的版本如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| "dependencies": { "hexo": "^3.9.0", "hexo-deployer-git": "^2.0.0", "hexo-generator-archive": "^1.0.0", "hexo-generator-category": "^1.0.0", "hexo-generator-feed": "^2.0.0", "hexo-generator-index": "^1.0.0", "hexo-generator-searchdb": "^1.0.8", "hexo-generator-sitemap": "^1.2.0", "hexo-generator-tag": "^1.0.0", "hexo-related-popular-posts": "^3.0.6", "hexo-renderer-ejs": "^1.0.0", "hexo-renderer-marked": "^2.0.0", "hexo-renderer-stylus": "^1.1.0", "hexo-server": "^1.0.0", "hexo-symbols-count-time": "^0.6.1", "hexo-wordcount": "^6.0.1" }
|
Next主题更新
几个文档采用手动合并更新:
- next主题配置文件:_config.yaml (必须以现有配置文件为基础)
- 中文翻译文件: zh-CN.yml
- 插件库:lib
- 插件库版本忽略文件:themes\next.gitignore