Hexo搭建博客遇到的一些坑
创建仓库的名字一定要是用户名.github.io,我看错了直接创建了用户名仓库,就会报找不到仓库
_config.yml如果配置的是https,每部署一次都会要你输入用户名和密码,换成ssh就不会,例如
1234deploy: type: git repo: git@github.com:Larmyliu/Larmyliu.github.io.git branch: master
3.更换主题后报错extends includes/layout.pug block content include includes/recent-posts.pug include执行命令
1234npm install --save hexo-renderer-jade hexo-generator-feed hexo-generator-sitemap hexo-browsersync hexo-generator-archivehexo chexo g
即可
My New Post
我的第一篇博客hexo有点意思哦