Build a Blog by Hexo + GitHub

Hexo + GitHub

Hexojs

A fast, simple & powerful blog framework, powered by Node.js.

Installation

$npm install hexo-cli -g
$npm update hexo -g

Few commands to start

setup your blog

$ hexo init your_blog // your_blog is a new directory
$ cd your_blog
$ npm install 

create a new post

$hexo new "hello world"

run server / deploy local

$hexo server  // http://localhost:4000, default port; _config.yml

generate static files

$hexo generate    // public folder, 

Deploy to remote sites

$hexo deploy

Resources & Features

Hexo.io
Hexo GitHub

Deploy blog to GitHub

Personalize/Config Blog

Hexo GitHub Deployer

$ npm install hexo-deployer-git --save

Feed Support

1
$npm install hexo-generator-feed --save

Category Support

1
$npm install hexo-generator-category --save

Steps

  1. apply an GitHub “account”
  2. create a new Repository (GitHubPage name use “account.github.com” or “acount.github.io”)
  3. config Hexo github address _config.yml
    # Deployment
    ## Docs: http://hexo.io/docs/deployment.html
    deploy:
    type: git
    repository: https://github.com/account/account.github.io.git
    > e.g. https://github.com/Strong689/strong689.github.com.git
    branch: master> visit: [Step by step Leaning](http://strong689.github.com) or [Blog at GitHub.io](http://strong689.github.io)