search

Home  >  Q&A  >  body text

css - hexo+github build blog

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?

我想大声告诉你我想大声告诉你2849 days ago776

reply all(3)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-05-02 09:50:19

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

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-02 09:50:19

    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

    reply
    0
  • 習慣沉默

    習慣沉默2017-05-02 09:50:19

    Still using IE. . .

    reply
    0
  • Cancelreply