Hexo NextT Upgrade

Hexo NextT Upgrade

這篇介紹How to upgrade Hexo & NextT。

Step By Step:

Version-
Hexo: 5.4.0
NextT: 8.7.0

1.重建Hexo資料夾,安裝最新版本Hexo
$ hexo init newMyblog
$ cd newMyblog
$ npm install
$ npm install hexo-deployer-git –save
$ npm install hexo-admin –save

2.比對新舊Hexo root資料夾下的_config.yml
因新舊_config.yml選項兩邊不同,需要比對將舊的設定移植至新的_config.yml

3.將舊的 /source/ 下全部複製至新的 /source/
此步驟是移植blog文章

4.安裝最新版NextT主題
$ cd newMyblog
$ git clone https://github.com/next-theme/hexo-theme-next themes/next

5.啟用root資料夾下的_config.yml的theme:
theme: next

6.比對新舊 /themes/next 資料夾下的_config.yml
一樣用比對的方式將舊的設定移植去新的設定
memo: 設定有新增、被移除、或換位置,需逐行比對

  1. debug
    $ hexo clean
    $ hexo g
    $ hexo s