hexo_commands

Posted by linhuanjie on 2019-01-27

官方文档

  • 创建新文章:hexo n(new) [layout]

    1
    您可以在命令中指定文章的布局(layout),默认为 post,可以通过修改 _config.yml 中的 default_layout 参数来指定默认布局。
  • 启动本地服务:hexo s(server)

  • 清理文件:hexo clean

    1
    2
    3
    H:\hexo_blog>hexo clean
    INFO Deleted database.
    INFO Deleted public folder.
  • 生成静态文件:hexo g(generate)

  • 部署网站:hexo d(deploy)