Hexo is a fast, clean, and efficient blogging framework that takes advantage of the super-fast generation speed of Node.js to render hundreds of pages in seconds. Supportall features of GitHub Chinglish Markdown, and can even integrate most of Octopress plugins. Deploy to GitHub Pages, Heroku, or other platforms with a single command. Powerfully integrated API with several template engines (EJS, PUG, Nunjucks) and tools (Babel, PostCSS, LESS /Sass).

The installation

Installing Hexo is fairly easy, just install Node.js and Git and run the following command:

$ npm install hexo-cli -g

site

After installing Hexo, execute the following command and Hexo will create the required files in the specified folder.

$ hexo init <folder>
$ cd <folder>
$ npm install

configuration

The configuration information for the website is in the file _config.yml, where you can configure most of the parameters.

The command

new

$ hexo new <title>

The above command creates a source/about/\<title\>.md file, enclosed in quotation marks if the title contains Spaces.

server

$ hexo server

Start the server. By default, the URL is: http://localhost:4000/

deploy

$ hexo deploy

Deploy the Web site. This command can be abbreviated as:

$ hexo d

The deployment of

Hexo provides a quick and easy one-click deployment feature that allows you to deploy a Web site to a server with a single command.

hexo deploy

Before you can begin, you must install hexo-deployer-git

$ npm install hexo-deployer-git --save

Then modify the _config.yml configuration

deploy:
  type: git
  repo: <repository url>
  branch: [branch]

You can then execute the following command to generate the site file and push it to the remote library.

$ hexo clean && hexo deploy