Hexo101

使用Hexo和GitHub一分钟快速搭建属于自己的个人学习网站

准备工作

1
2
npm i hexo-cli -g
npm install hexo-deployer-git --save

部署

1
2
3
4
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com/child
root: /child/
1
2
3
4
deploy:
type: git
repo: https://github.com/yourname/your_repo.git
branch: gh-pages

完成

1
https://yourname.github.io/your_path/

新鲜出炉

就是这么迅速😏,接下来就是自己探索了