hexo的常用命令

常用命令

1
2
3
4
5
6
7
8
9
10
11
12
hexo init [folder] # 新建一个网站
hexo new <title> # 新建一篇文章

hexo generate # 生成静态文件
hexo clean # 清除缓存文件和已生成的静态文件
hexo deploy # 部署网站
hexo server # 启动服务器

npm run build # 生成静态文件
npm run clean # 清除缓存文件和已生成的静态文件
npm run deploy # 部署网站
npm run server # 启动服务器

官方文档

文档 | Hexo

引用文章

1
{% post_link filename [title] [escape] %}