HEXO博客部署

    xiaoxiao2021-03-26  18

    去年部署了jekyll的博客,当时为了能在本地预览博客效果,一大堆安装,windows上实在太痛苦。幸好,现在有了HEXO,实在是太方便了。

    今晚也开通了hexo博客,简单记录一下遇到的一些坑。

    网上的优秀指南很多,比如:

    http://ibruce.info/2013/11/22/hexo-your-blog/

    https://gloomymoon.github.io/2016/10/18/Build-A-Blog-With-GitHub-And-Hexo/

    坑1,在上面的指南中,新建仓库名称已变更,仓库的名称必须严格限制为:your_user_name.github.io  此处为io不是com,切记。

    坑2,在上面的指南中,也都没有提到要执行,npm install hexo-deployer-git --save  ,如若不执行,则会报错:ERROR Deployer not found: git。

    坑3,HEXO更新到3.0以后,_config.yml 中的deploy 的type 为:git ,而不是github

    填坑参考:

    https://segmentfault.com/q/1010000004399366

    http://stackoverflow.com/questions/34452547/hexoerror-deployer-not-found-github

    https://hexo.io/docs/deployment.html

    https://github.com/hexojs/hexo/issues/1478

    https://www.v2ex.com/t/175940

    优秀的hexo theme:

    http://blog.zhangruipeng.me/hexo-theme-hueman/

    http://kaijun.rocks/hexo-theme-huxblog/

    https://itimetraveler.github.io/hexo-theme-hiero/

    转载请注明原文地址: https://ju.6miu.com/read-659494.html

    最新回复(0)