nodejs:https://nodejs.org/en/
git: http://git-scm.com/download/win
tortoisegit: https://tortoisegit.org/download/
git config --global user.name "username"
git config --global user.email "username@github.com"
ssh-keygen -t rsa -C "username@github.com"
得到文件 id_rsa和id_rsa.pub github添加id_rsa.pub公钥 测试 ssh git@github.com
npm install hexo
hexo init
npm install
git init
git checkout -b hexo
git remote add origin git@github.com:username/username.github.io.git
修改_config.yml中的deploy参数,分支应为master
deploy:
type: git
repo: git@github.com:username/username.github.io.git
branch: master
npm install hexo-deployer-git --save
npm install hexo-generator-feed --save
npm install hexo-generator-sitemap --save
npm install js-yaml
npm install hexo-admin --save
git add .
git commit -m "...."
git push origin hexo
hexo clean
hexo generate (hexo g)
本地测试修改 hexo server (hexo s)
提交到远端 hexo deploy (hexo d)
git clone git@github.com:username/username.github.io.git
npm install hexo
npm install
npm install hexo-deployer-git
注意 此时不需要hexo init命令了
https://segmentfault.com/a/1190000007261752
{% post_link poj-1426-find-the-multiple %}
代码文件需存放于source/assets/code文件夹
{% include_code main Prime Ring lang:cpp main.cpp %}
![](/assets/image/img.jpg)