With the advent of the Internet era, the exchange of information is very important. There are more and more excellent information sharing platforms, among which personal blog is a very popular way. Here’s how GitHub +Hexo works. If you want to create your own blog, follow this tutorial to quickly create your own blog.

What is a Hexo?


Hexo is a fast, clean, and efficient blogging framework. Hexo uses Markdown (or another rendering engine) to parse articles and, in seconds, generate static web pages with beautiful themes.

  1. Install git

Open theGit website, select your own computer system, and then select the corresponding version of the installation package to install, and then along the fool-type installation is good. If the installation is successful, the right mouse button on the desktop will bring up the Git menu

  1. Installation node. Js

If it’s Windows 10,Open the Node websiteJust download the latest version directly and don’t make the wrong version.

If you’re running Windows 7, you may not support the latest version,this, I am the next MSI files, direct installation is very convenient. After the installation is complete, open CMD in Win +R and type Node. If prompted, the installation is successful.Node.js version cannot be lower than 12

  1. Install Hexo

(1) First, modify the NPM installation source. If you do not change the installation, it will be very slow. Here, change to the NPM image of Taobao

$ npm config set registry
https://registry.npm.taobao.org

(2) install Hexo

$ npm install -g hexo-cli

(3) Locate to your local Hexo folder (a folder you created by yourself, with any path or name, preferably in Chinese).

$ cd /d D:Hexo

(4) Create a home folder (the speed may be a little slow, if the time to change the source is particularly long, to see if GitHub is stuck, hang an agent try), this folder is the place to put the code in the future, don’t suggest to put it in random

$ hexo init bolg

If this step gets stuck, append the NPM installation source

$ npm –registry
https://registry.npm.taobao.org info underscore

(5) Generate static files of the website (default setting public folder)

$ hexo g

(6) Start the service

$ hexo s

Open your browser and visit http://localhost:4000 to see the content. The default official theme can be ugly

  • My web site, https://www.jsonformatting.com/