Hello Hexo

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 trobuleshooting or you can ask me on GitHub.

Quick Start

Misc

steps to create new blog site:

$ hexo init (hexo will complain if anything wrong, make it happy)
$ npm install (hexo will ask U to do so)
$ hexo server

Add google analytics into hexo:

  1. Get “tracking ID” from Google
  2. add “tracking ID” in themes/landscape/_config.yml

Create a new post

$ hexo new "My New Post"

More info: Writing

Run server

$ hexo server

More info: Server

Generate static files

$ hexo generate

More info: Generating

Deploy to remote sites

$ hexo deploy

More info: Deployment

Hexo configuration

全部禁用分页

per_page: 0

archive禁用分页,主页使用分页

per_page: 3

archive_generator:
  per_page: 0
 yearly: true
  monthly: true

category_generator:
  per_page: 0

tag_generator:
   per_page: 0

启动hexo-local-image插件

npm install hexo-local-image --save

插件下载后有README.md,配置_config.yml

plugins:
    - hexo-local-image

新版hexo默认不提供server插件,需要手动加:

npm install hexo-server --save

添加plantuml插件

npm install hexo-tag-plantuml –save