目录

Hexo+Coding Ide+Next6搭建blog

windows安装hexo

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
git config --global core.autocrlf false
ssh -T git@git.coding.net `输入yes`
mkdir hexoblog
cd hexoblog/
npm install hexo -g
hexo -v
hexo init
vi _config.yml
cat /c/Users/80283/.ssh/id_rsa.pub
hexo clean && hexo generate && hexo deployer
hexo server
npm install hexo-server
npm install hexo-deployer-git --save
hexo clean
hexo generate
hexo deploy
vi _config.yml
npm install hexo-deployer-git --save
hexo clean && hexo g && hexo d
hexo clean && hexo g && hexo deploy
vi _config.yml
hexo deploy

添加模板

1
2
3
4
5
6
7
mkdir themes/next
ls themes/next/
git clone https://github.com/iissnan/hexo-theme-next es/next
hexo new page "tags"
hexo new page "categories"
hexo g && hexo d
hexo clean && hexo g && hexo d

多台电脑同步hexo

将本地hexo同步到远程uname hexo分支

1
2
3
4
5
6
git init
git remote add origin ://git.coding.net/uname/uname.git
git checkout -b hexo
git add .
git commit -m "hexo ori"
git push origin hexo

coding ide 配置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sudo npm install -g hexo-cli
sudo npm install -g hexo
sudo npm install
sudo npm install hexo-deployer-git
git config --global user.email "it@mulinux.com"
git config --global user.name "CodingWebIde"
hexo clean && hexo g && hexo d
git add .
git commit -m "test"
git push origin hexo
cat /home/coding/.ssh/id_rsa.pub
git push origin hexo

参考资料

1
2
3
http://www.alonemonkey.com/2016/05/20/blog-by-jekyll-hexo/	
https://www.cnblogs.com/visugar/p/6821777.html
https://www.jianshu.com/p/6fb0b287f950