Hexo Get Started

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

More info: Generating

Deploy to remote sites

1
$ hexo deploy

备份

hexo deploy只会将编译结果push到master上,markdown文件并不会推上去。如果自己换了电脑,就面临原始数据丢失的问题。解决方案:在github上新建一个分支,每次编辑后,将原始内容推到分支上即可。

More info: Deployment


Hexo Get Started
http://yoursite.com/2016/07/10/hello-world/
作者
Ma Zhichao
发布于
2016年7月10日
许可协议