css - hexo+github搭建博客
我想大声告诉你
我想大声告诉你 2017-05-02 09:48:19
0
3
716

hexo已经安装好了,本地测试成功,github pages也已经创建好了,现在的问题是怎么部署Hexo到Github Pages?

我想大声告诉你
我想大声告诉你

reply all(3)
我想大声告诉你

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. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template