参考https://www.jianshu.com/p/77db3862595c
遇到的问题:
1. 配置的时候hexo d后报错”ERROR Deployer not found: git“
解决:这是因为没安装hexo-deployer-git
插件,在站点目录下输入下面的插件安装就好了:
npm install hexo-deployer-git --save
2. Error: Spawn failed
at ChildProcess.<anonymous>
解决:删除远程仓库,删除本地blog文件夹中的.deploy_git文件夹,再次发布。
3. 按照网上的配置,但是从导航条menu中进categories或者home等页面都显示404.
解决:仔细看404时候的url,发现多了一个%20,%20一般代表空格,所以是在theme中的config文件里,menu的正则表达式后面多了个空格。经测验,||两侧均没有空格最稳妥。
menu:
home: /||home
#about: /about/ || user
tags: /tags/||tags
categories: /categories/||th
记录:
1. post的文章在该目录下的source/_posts中,是markdown文件