hexo安装
npm install hexo-cli -g
 hexo init blog
 cd blog
 npm install
 hexo server
key配置
ssh-keygen -t ed25519 -C “email@e.com”
 添加key到github
err
 git@github.com: Permission denied (publickey).
 fatal: Could not read from remote repository.
配置GitHub仓库
在GitHub上创建一个新的仓库,其名称应该是 用户名.github.io,其中用户名是你的GitHub用户名。
 git config --global user.email “xx@qq.com”
 git config --global user.name “user”
_config.yml
deploy:
 type: git
 repo: # 替换为你的GitHub仓库url
 branch: master
安装hexo-deployer-git插件:
npm install hexo-deployer-git --save
部署到GitHub:
hexo clean
 hexo g #hexo generate
 hexo d #hexo deploy

建立仓库 testhtml

Settings -> pages
https://xxx.github.io/testhtml/index.html



















