1、安装Git
http://git-for-windows.github.io/
https://github.com/git-for-windows/git/releases/download/v2.6.4.windows.1/Git-2.6.4-64-bit.exe
2、安装Node.js
https://nodejs.org/en/
https://nodejs.org/dist/v5.3.0/node-v5.3.0-x64.msi
3、安装Hexo框架
4、安装Hexo插件
1 2 3
| npm install hexo-generator-sitemap --save npm install hexo-generator-feed --save npm install hexo-deployer-git --save
|
5、创建个人博客
创建目录,右击后选择git bash,输入:
6、运行服务器测试
1 2
| hexo generate hexo server
|
本地地址:http://localhost:4000/
7、编辑_config.yml文件增加
1 2 3 4 5
| deploy: type: git repo: git@git.coding.net:kinsou/blog.git message: update branch: coding-pages
|
8、上传Git
其他命令:
1 2 3
| hexo n #写文章 hexo g #生成 hexo d #部署 # 可与hexo g合并为
|