增加分類屬性
步驟參考這篇文章 → Hexo使用攻略-添加分類及標簽
問題1:在增加分類的時候部署失敗
yina:blog Yina$ hexo d
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
at ChildProcess.<anonymous> (/Users/Yina/blog/node_modules/hexo-util/lib/spawn.js:37:17)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
問題:
fatal: Could not read from remote repository.
原因:
access rights
Please make sure you have the correct access rights
and the repository exists.
Error: ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
找到一個鏈接:https://github.com/hexojs/hexo/issues/2767
提供的解決方案:
15451995366440.jpg
測試:
可以實現(xiàn)部署。
問題2:分類博文在遠程出現(xiàn)404錯誤
15452011349528.jpg
過了段時間重新試了下就OK了
15452057624750.jpg
問題3:分類沒有入口
通過谷歌找到解決方法
要在主題的注冊文件中修改。
15452942499279.jpg
before
menu:
home: / || home
#about: /about/ || user
#tags: /tags/ || tags
#categories: /categories/ || th
after
menu:
home: / || home
#about: /about/ || user
#tags: /tags/ || tags
categories: /categories/ || th