hexo 3.x同时部署到github和gitcafe的方法

详细的hexo博客搭建教程可以参考这里

在我按照教程搭建博客的过程中,无意中看到了可以同时将博客部署到githubgitcafe上,以提高国内外的访问速度,具体操作过程可以参考这里

当按照教程修改hexo的配置文件_config.yml后,第二个repo里并没有更新代码,经过查阅官方文档_config.yml正确的配置如下:

1
2
3
4
5
deploy:
- type: git
repo: git@github.com:yourname/yourname.github.io.git,master
- type: git
repo: git@gitcafe.com:yourname/yourname.git,gitcafe-pages

现在使用hexo d,应该就没问题了。

注意,type前面的-不能省略。



本文章首发www.whtis.com,转载请注明出处


如果觉得这篇文章还有用的话,请我喝杯饮料呗~~