Hexo使用教程

这里是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

More info: Server 用本机作为服务器试运行(?)可能不太严谨

Generate static files

1
$ hexo generate

More info: Generating 创建静态文件

Deploy to remote sites

1
$ hexo deploy

More info: Deployment 部署到网站,这里使用的是GitHub管理版本,所以是远程更新GitHub仓库(?)应该是吧(