0%

Hexo常用的命令

Hexo常用的命令记录

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
hexo g
# 即hexo generate
# Generates static files
参考:
https://hexo.io/docs/commands

hexo d
# 即hexo deploy
# Deploys your website
参考:
https://hexo.io/docs/commands

hexo clean
# 清除Hexo的缓存
# Cleans the cache file (db.json) and generated files (public)
# 可能会由于本地缓存而导致发布没有生效(发布指发布到github)
参考:
https://hexo.io/docs/commands
https://www.clcoder.com/2019/09/23/Hexo%E7%9A%84%E5%9F%BA%E6%9C%AC%E4%BD%BF%E7%94%A8/

hexo clean && hexo d -g
# 生成部署命令组合
欢迎打赏