用Hexo和GithubPage搭个静态Blog, 特记录下一些重点,以便后期查看.
blog主更新地址在这, 会不定期将blog更新在此.
SSH-key
rm ~/.ssh/*
ssh-keygen -t rsa -C "youemail@name.com"
add ~/.ssh/id_rsa.pub ssh key to your github setting ssh-key
Install Hexo
npm(cnpm) install hexo-cli -g
Initial hexo folder
hexo init yourfolder
cd yourfolder && npm(cnpm) install
Test connection to github
ssh git@github.com
Add your account info
git config --global user.name "youname"
git config --global user.email "youemail"
Configuring hexo deployment file _config.yml
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repo: ssh address for your git repo
branch: master
Push post
hexo clean
hexo g
hexo d
Error about git
npm(cnpm) install hexo-deployer-git --save
网友评论