Github.io + Hexo To Build Your Blog

Introduction

This is my first blog. Building github page - github.io
Using theme by hexo - next

Hexo! This is your very first post. Check documentation for more info.

Github Pages Config

Creating a new repository name [USERNAME].github.io

Init a hexo project and replace a theme as you like

Runing command

1
$ hexo deploy

To building your blog public files.

Then push the deploy files which names ‘public’ to your repository([USERNAME].github.io)

Reading the repository setting, viewing the Github Pages that you can see whether your pages config success or fail.

If success, open your link by http://USERNAME.github.io

It is working now

Hexo Help

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment