Hello Hexo
以前一直用wordpress维护博客,最近看到hexo博客的样例,觉得挺炫的,今天就准备将wordpress版本的博客迁移到hexo,然后重新梳理以前的博文。
Hexo Quick Start
Create a new post
| 1 | $ hexo new "My New Post" | 
More info: Writing
Run server
| 1 | $ hexo server | 
More info: Server
Generate static files
| 1 | $ hexo generate | 
More info: Generating
Deploy to remote sites
| 1 | $ hexo deploy | 
More info: Deployment
升级过程
依赖库更新
和正常 Node 项目一致,使用 npm 更新即可。
更新全局 hexo-cli
| 1 | npm update -g hexo-cli | 
复制
进入博客目录
查看可升级的包:
| 1 | > npm outdated | 
复制
全局安装 npm-check工具
| 1 | npm install -g npm-check | 
复制
更新所有包
| 1 | npm-check -u --registry https://registry.npm.taobao.org | 
复制
升级后的版本如下:
| 1 | "dependencies": { |