Abstract: With the development of express delivery in the Internet era, the demand for independent blog is increasingly strong. In this paper, hexo and Github are firstly described, and hexo+ Github is used to build personal blog quickly and efficiently. Finally, draw the conclusion of the paper.

Key words: independent blog; Hexo; Making; Set up

With the development of express delivery in the Internet era, the demand for independent blogs has become increasingly strong. In this paper, we first describe the technologies of hexo and github and use the combination of hexo and github to build detailed steps for personal blogs quickly and efficiently. Finally, draw the conclusion of the paper.

Keywords: independent blog; hexo; github; build

0 the introduction

With the continuous improvement of the quality of life and the advent of the we-media era, there is a huge market for independent blogs. Traditional blogs cannot meet the requirements of users, and more and more users are eager to define their own independent blogs to show their style. There are wordpress, Flask, Jekyll, Hexo, etc. In this article, HEXo is directly used. The interface is simple, the loading speed is fast, and it supports Makedown and deployment to Github.

Hexo and Github

(1) hexo

Hexo is a fast, concise and efficient blogging framework. Rendering hundreds of pages in seconds. Hexo supports all of the Github Markdown features and even most of Octopress’s plugins. And has its own powerful plug-in system.

After installing and configuring Hexo, you can see the document structure of Hexo as follows:

Generally, the following commands are used.

(2) a lot

GitHub as the world’s largest open source software community, is a hosting platform for open source and private software projects, because only support Git as the only version library format for hosting, so the name gitHub. Github is a Web collaboration community based on Git. It has a variety of mechanisms for people to collaborate with you to contribute to the project. Github is full platform, full device support, you can share your code, comments, or other meaningful information on any device, anytime, anywhere. Github’s functions can be divided into: code hosting, project management, Github Pages, and install magic. Among them, github Pages is mainly used in this article.

GitHub can host various Git repositories and provide a Web interface, but unlike other services like SourceForge or Google Code, GitHub’s unique selling point is the ease of branching from another project. Contributing code to a project is simple: first click the “fork” button on the project site, then check out the code and add the changes to the code base you just split, and finally request code merge from the project lead through the built-in “pull Request” mechanism. Some are already calling GitHub the MySpace of coders. Branching out on GitHub is like having Myspace (or Facebook…). Like making friends, make connections at each node of the social graph.

2 Hexo + Github personal blog building process

Hexo+ Github to set up a personal independent blog can be divided into the following steps: preparation, installation of Hexo, initialization of Hexo, deployment to Github.

(1) Preparations: Download and install NodeJS and Git, and register a Github account.

Here are the nodeJS installation steps:

After downloading from the official website, unzip and install.

Download and install Git.

(2) Install Hexo

When node.js and Git are installed, Hexo can be installed.

Initialize Hexo

First, you need to create folders (my blog was created on disk E).

In the blog file, right-click Git Bash and type hexo init

And then hexo G,hexo S

Enter: localhost: 4000 in the browser to access, the effect is as follows:

On github, click Create Repository, set the name, and Create Repository

Do this in the site configuration file _config.yml.

At this point, the basics of building an independent blog are complete.

3 conclusion

Based on hexo+ Github, the process is not too complicated. During the building process, I was able to gain a deeper understanding of the principles behind Hexo framework and the advantages of Github. Also, you need to be patient during the build process, so that when you run into bugs, you don’t give up. It is also with enough patience, finally can build their own succinct and generous individual independent blog.

The resources

[1]https://blog.csdn.net/ainuser/article/details/77609180

[2]https://blog.csdn.net/qq_33699981/article/details/72716951