hexo 常用命令记录

hexo 常用命令记录

作者 Yingying Zheng 日期 2017-07-31
hexo 常用命令记录

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

简称: hexo s

More info: Server

Generate static files

1
$ hexo generate

简称 hexo g

More info: Generating

Deploy to remote sites

1
$ hexo deploy

简称:hexo d

前提是有_config.yaml有deloy配置

1
2
3
4
5
deploy:
type: git
repo: git@github.com:lankors/lankors.github.io.git
branch: master

More info: Deployment

生成并发布新博客

1
2
$ hexo d -g