With Hexo + GitHub to quickly build a personal blog, because just set up, a little excited, share under, bad place also please point out, thank you

Source: Internet
Author: User
Tags install node git shell

1. First create your own project directory, the project name is: Your Username.github.io, because I created so he warned me, said it has been repeated, and then point to create

Attached to the official website of the commentary document: https://pages.github.com/installation Inside, quickly established after the code clone down.

3. Press Hexo, if you want to install node first, then install git for Windows

4. Open git shell and install Hexo

NPM Install HEXO-CLI-G (global installation)

NPM Install Hexo--save

5. You set up your own project folder. Mine is in F/zcx_git/hexo.

Then go to the Git shell CD under the directory file Hexo init installed in this directory Hexo

After the installation of Hexo server to start the local server, you can see, the default port is localhost:4000: (now installed HEXO It has installed some of the necessary plug-ins, need to go to the official website to download)

6. Configure _CONFIG.YML to have at least parameters in a correct deployment configuration type , for example:

Deploy
Type:git
Repo: (Repo is the address of your Git remote repository)

Specific detailed configuration: https://hexo.io/docs/configuration.html (official website-English)

Https://hexo.io/zh-cn/docs/configuration.html (English)

7. Last generate static file $ Hexo generate fast build.

8. A quick deployment of a command, too convenient: Hexo deploy (if you want to configure the correct);

With Hexo + GitHub to quickly build a personal blog, because just set up, a little excited, share under, bad place also please point out, thank you

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.