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 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

#启动本地服务,进行文章预览调试。
浏览器输入 http://localhost:4000 就可以看到效果。

More info: Server

Generate static files

$ hexo generate

#hexo g
生成静态页面
命令必须在init目录下执行,否则不成功,但是也不报错。
当你修改文章Tag或内容,不能正确重新生成内容,可以删除 hexo\db.json 后重试,还不行就到 public 目录删除对应的文件,重新生成。

More info: Generating

Deploy to remote sites

$ hexo deploy

#hexo d

More info: Deployment