从一台新机器开始我的博客

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
2
3
4
5
npm install hexo-cli -g
hexo init blog
cd blog
npm install
hexo server

hexo-admin文章管理工具

1
2
3
4
npm install --save hexo-admin
hexo server -d
open http://localhost:4000/admin/
# hexo-admin已经很久没有维护了,将优化代码覆盖进去

安装主题icarus

1
2
git clone https://github.com/ppoffice/hexo-theme-icarus.git themes/icarus
git clone https://gitee.com/xiongyizhu/hexo-theme-icarus.git themes/icarus

修改hexo根目录的_config.yml

1
theme: icarus

评论

Your browser is out-of-date!

Update your browser to view this website correctly.&npsb;Update my browser now

×