Last updated 5 years ago
Was this helpful?
Hexo 是一個快速產生Blog的模板
藉著terminal的指令快速部署
下面為Hexo部署到github pages範例
_config.yml
deploy: type: git repo: https://github.com/EasonWang01/blog.git branch: gh-pages
需加入如下在config
url及root需更改
# URL ## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/' url: http://yoursite.com/blog root: /blog
即可輸入
hexo deploy
部署
先刪除.deploy_git 目錄與 public 目錄
之後輸入
先把原本hexo init push到一個repo,之後把他拉下來即可