
Github
github上创建一个名为’YourName.github.io’的repository
Hexo
回到_config.yml文件下改写参数:
url: https://YourName.github.io/
deploy:
type: git
repo: https://github.com/YourName/YourName.github.io.git
branch: master
当前文件目录下:
安装hexo-deployer-git工具: npm install hexo-deployer-git -save
上传文件: hexo d
上传完毕后,可以看到:INFO Deploy done: git
最后访问自己的主页https://YourName.github.io/ 部署完成
有文件更新是执行:
hexo clean
hexo generate
hexo d
本地运行
hexo server //本地地址http://localhost:4000/




近期评论