hexo常用命令

hexo 常用命令

hexo new "page name" 新建一个page

hexo g generate,生成静态文件

hexo s server,启动服务器

hexo d deploy,部署网站,相当于push静态文件到git上。

hexo clean 清除缓存文件和已生成的静态文件

hexo init [folder] 新建一个网站

hexo list <type> 列出网站资料,available types: page, post, route, tag, category

常见问题

Template render error

1
2
3
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 62, Column 45]
parseAggregate: expected colon after dict key

文章中不能出现3个连续的{,可改成{ { {,中间加空格