hexo已經(jīng)安裝好了,本地測(cè)試成功,github pages也已經(jīng)創(chuàng)建好了,現(xiàn)在的問題是怎麼部署Hexo到Github Pages?
$ npm install hexo-deployer-git --save
_config.yml
deploy:
type: git
repo:
branch: [branch]
message: [message]
repo:庫(Repository)位址
branch:分支名稱。如果您使用的是 GitHub 或 GitCafe 的話,程式會(huì)嘗試自動(dòng)偵測(cè)。
message:自訂提交資訊 (預(yù)設(shè)為 Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }})
$ hexo deploy
參考:https://hexo.io/zh-cn/docs/de...
你找找部落格來看吧,很簡(jiǎn)單。第一次弄注意_config.json的配置。
這個(gè)http://www.jianshu.com/p/e0a2..??.
這個(gè)地方好像也要配置
還有一點(diǎn),你首先要把本機(jī)與GitHub用ssh建立連接