美文网首页
Hexo GithubPage Blog Note

Hexo GithubPage Blog Note

作者: NoTKS | 来源:发表于2018-08-24 05:59 被阅读0次

用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

相关文章

网友评论

      本文标题:Hexo GithubPage Blog Note

      本文链接:https://www.haomeiwen.com/subject/griviftx.html