Note

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
2
3
$ hexo generate
or
$ hexo g

More info: Generating

Deploy to remote sites

1
2
3
$ hexo deploy
or
$ hexo g

More info: Deployment

清除已经生成的public文件夹内容

1
$ hexo clean

注意:所有新的post页面都需要使用new命令生成,因为这一过程需要编辑config文件,所以不要手动创建md文件。即便能够显示在网站中,也会缺少gitalk插件的支持导致评论区不可用。