使用 Hexo 生成静态文件非常简单快捷。
¥Generating static files with Hexo is quite easy and fast.
$ hexo generate |
注意文件更改
¥Watch for File Changes
Hexo 可以监视文件更改并立即重新生成文件。Hexo 会比较文件的 SHA1 校验和,并且仅在检测到文件更改时才写入。
¥Hexo can watch for file changes and regenerate files immediately. Hexo will compare the SHA1 checksum of your files and only write if file changes are detected.
$ hexo generate --watch |
生成后部署
¥Deploy After Generating
要在生成后进行部署,你可以运行以下命令之一。两者之间没有区别。
¥To deploy after generating, you can run one of the following commands. There is no difference between the two.
$ hexo generate --deploy |