搭建博客之前你需要下载工具例如:
node.js.
git for windows
sublime
还需要在github注册账号。
在把自己的博客从hexo发送至github上需要注意几个问题。
需要改一下地方:
keywords:
author: xxx
language:
timezone:
url: https://xxx.github.io
deploy:
type: git
repo: https://github.com/xxx/xxx.github.io.git
branch: master
改完之后不要忘了保存(ctrl+s)
hexo g
hexo d
在hexo d之后可能会出现错误,我的需要改root这个地方
root: xxx.github.io
然后不要忘了保存。
例如root branch type等后面的代码都有一个空格。