Hexo has been installed, local testing has been successful, and github pages have been created. The question now is how to deploy Hexo to Github Pages?
repo: Repository address branch: branch name. If you are using GitHub or GitCafe, the program will try to detect it automatically. message: Customized submission message (default is Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }})
Just look for the blog, it’s very simple. For the first time, pay attention to the configuration of _config.json. This http://www.jianshu.com/p/e0a2... This place seems to also need to be configured
One more thing, you must first establish a connection between this machine and GitHub using ssh
Install hexo-deployer-git.
$ npm install hexo-deployer-git --save
Modify configuration
_config.yml
deploy:
type: git
repo: <repository url>
branch: [branch]
message: [message]
repo: Repository address
branch: branch name. If you are using GitHub or GitCafe, the program will try to detect it automatically.
message: Customized submission message (default is Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }})
Deployment
$ hexo deploy
Reference: https://hexo.io/zh-cn/docs/de...
Just look for the blog, it’s very simple. For the first time, pay attention to the configuration of _config.json.
This http://www.jianshu.com/p/e0a2...
This place seems to also need to be configured
One more thing, you must first establish a connection between this machine and GitHub using ssh
Still using IE. . .