基本操作
初始化hexo init
新建文章hexo new [layout]<title>
如果layout为空,则使用配置文件_config.yml中的default_layout(默认为:post)。
生成静态文件hexo generate
发表草稿hexo publish [layout] <filename>
部署hexo deploy
如果配置好_config.yml中的deploy,即可自动发布的github.io
获取文件列表hexo list <type>
type为post/draft/page等
清理工作目录hexo clean
启动本地服务hexo server -p 8090
问题
hexo在本地测试运行重启后页面一直空白,提示 :
WARN No layout: index.html,确定theme目录下,相应的目录是否存在或为空部署时出现
error deployer not found:git错误,可以能是未安装hexo-deployer-git模块 。执行 :
npm install hexo-deployer-git --save即可。- 有的theme是不支持Tags的。。。。比如Hacker