Hello World

How to use hexo

This article is rewrite based on Hexo’s Hello world post.

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

Between two “ is your new-post-name. Here the post name is My New Post.

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

or

1
$ hexo s

Then you can view your new post at your local server.

More info: Server

Generate static files

1
$ hexo generate

or

1
$ hexo g

More info: Generating

Deploy to remote sites

1
$ hexo deploy

or

1
$ hexo d

More info: Deployment