hexo
常用命令
1. 初始化
hexo init 【新建一个网站,如果没有设置文件夹,会在当前目录下创建】
2. 新建文章
hexo new post 文章名
注意:1.如果标题有空格,注意添加引号"文章名"
. 2. 会在source下的_post文件夹内创建文件
3. 新建页面
hexo new page categories 【新建类别页面,会自动创建一个页面】
4. 编译生成
hexo clean 【清理缓存】
hexo g 【编译】
hexo s 【本地预览】
hexo d 【部署发布】
5. 发表草稿
hexo publish
6. 渲染文件
hexo render [file2] ... 【暂时没有使用过】
7. 从其他博客迁移
hexo migrate
8. 显示草稿
hexo --draft