2020-10-05 15:28:31 +01:00
|
|
|
|
# hexo
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
> 快速、简洁且高效的博客框架。
|
2021-08-31 08:13:49 +01:00
|
|
|
|
> 更多信息:<https://hexo.io/>.
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 初始化一个网站:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo init {{path/to/directory}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 创建一篇新文章:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo new {{layout}} {{title}}`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 构建静态文件:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo generate`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 启动本地服务器:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo server`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 部署网站:
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo deploy`
|
|
|
|
|
|
2021-08-02 09:41:09 +01:00
|
|
|
|
- 清理缓存文件(`db.json`)和生成的文件(`public/`):
|
2020-10-05 15:28:31 +01:00
|
|
|
|
|
|
|
|
|
`hexo clean`
|