文章目录
  1. 1. Quick Start
    1. 1.1. Create a new post
    2. 1.2. Run server
    3. 1.3. Generate static files
    4. 1.4. Deploy to remote sites
    5. 1.5. Useful hexo plugins
    6. 1.6. Put the whole source folder into git
    7. 1.7. Some notes about doc syntax
    8. 1.8. Awsome markdown editors:

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

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate # 'hexo g' for short

More info: Generating

Deploy to remote sites

1
$ hexo deploy # 'hexo d' for short

More info: Deployment

Useful hexo plugins

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

Put the whole source folder into git

1
...
# Dependency directory
node_modules
# hexo generated files, deployed to github.io pages
public
.deploy_git
...

Some notes about doc syntax

  1. use <!-- more --> to hide blog details below.
  2. use toc: false to hide the topic menu about the blog.
  3. use mathjax: true to enable LaTex math prents.

Awsome markdown editors:

文章目录
  1. 1. Quick Start
    1. 1.1. Create a new post
    2. 1.2. Run server
    3. 1.3. Generate static files
    4. 1.4. Deploy to remote sites
    5. 1.5. Useful hexo plugins
    6. 1.6. Put the whole source folder into git
    7. 1.7. Some notes about doc syntax
    8. 1.8. Awsome markdown editors: