更新于:2019-11-07
github账户注册,git相关操作可参考:https://blog.csdn.net/ted_sky/article/details/102895200
仓库名一定是 用户名.github.io
默认开启 选择主题 选择完成后即可通过上面的网址访问:https://skyeblack.github.io/
添加一个index.html网页 提交代码到github,刷新个人网址:https://skyeblack.github.io/
HEXO官网:https://hexo.io/
npm install -g hexo-cli
不要跟github.io放同一个仓库,把源码和网站分开 hexo init [folder]
folder 博客源码程序目录hexo server
npm install hexo-deployer-git --save
配置到博客仓库目录去,不是源码仓库 提交到另一项目用下面这种方式
repo 自己的博客路径branch 博客的分支,由于github限制必须在master,所以不能改源码用git提交,但是博客代码不要用github的提交 hexo d -g
{% img your image path "your image title" %} {% img /image/git_skip2.png “git_skip2” %}
修改主题内的config,配置中的路径是相对于source目录的路径