hexo n "post name" #Create a new post. 创建新的名为"post name"的帖子
hexo clean #Remove generated files and cache. 不能简写 简写为 c 会被理解为config
hexo g #Generate static files. 每次写完或修改完博客之后需要先clean再generate 可以简写为 g
hexo s #Start the server. 实际命令为 hexo server 而非 start。 开启本地预览模式 通过 localhost:4000 访问
hexo init #Create a new Hexo folder. 注意需要在完全empty的文件夹中init 可能需要下载一些dependencies 我是等了十几分钟才好 如遇自动下载失败则使用 cnpm install 命令手动下载 然后再等十几分钟
hexo d #Deploy your website. 每次写完或修改完博客之后deploy推送到远端
|