每次更新文章需要做:
$ hexo clean // 清除
$ hexo g (generate)
$ hexo d (deploy)
部署到github 上 需要配置 _config.yml 找到下面的內容
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type:
修改:
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type: github
repository: [email protected]:zhchnchn/zhchnchn.github.io.git
branch: master
注:
Github 上新建倉庫(repository ) 名字要和你github 上的名字一致 如:github 名字是:like198. Repository 必須是 like198.github.io
這樣在Github上纔可以部署成功
NexT 主題 菜單配置
多文章寫的NexT菜單配置都是官網文檔那樣的配置,但真正的配置是這樣的:
menu:
home: / || home
archives: /archives || archive
categories: /categories || th
tags: /tags || tags
about: /about || user
menu_icons:
enable: true