安装hexo,整合github page

安装hexo,整合github page的一般流程!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
npm install -g hexo-cli

hexo init hexo-note
cd heco-note

# rm -rf .git

git init
git submodule add -f https://github.com/iissnan/hexo-theme-next.git themes/next
git submodule add -b gh-pages git@github.com:wangkaimin/hexo-blog.git public

git submodule update
echo "hexo.wangkaimin.com" > ./source/CNAME
hexo generate
git remote add git@bitbucket.org:wangkaimin/hexo-note.git
git add . && git commit -m "init hexo project" && git push -u origin master

cd public
git checkout gh-pages
git push --set-upstream origin gh-pages
git add . && git commit -m "init hexo page" && git push origin gh-pages