从一台新机器开始我的博客
1.下载Git
2.下载node.js(windows下载msi版本)
npm切换到淘宝源
1 | npm config set registry=https://registry.npm.taobao.org/ |
从淘宝源切回npm
1 | npm config set registry=http://registry.npmjs.org |
3.安装hexo命令和一些插件
Hexo快速开始命令
1 | npm install hexo-cli -g |
hexo-admin文章管理工具
1 | npm install --save hexo-admin |
安装主题icarus
1 | git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus |
修改hexo根目录的_config.yml
1 | theme: icarus |