通過Git+Hexo搭建的個人博客地址:http://factory011.coding.me/factory011.github.io/
1、使用git克隆最新版本
2、先在themes目錄創建一個next文件夾,然后在hexo站點目錄下右鍵打開Git Bash Here,輸入命令 git clone https://github.com/iissnan/hexo-theme-next.git themes/next
3、將blog目錄下_config.yml里theme的名稱由landscape修改為next
4、清除hexo緩存使用命令:hexo clear,驗證主題是否正確啟用,命令為:hexo s --debug 回車后出現報錯,
提示4000端口被占用,那就在blog目錄的_config.yml內加上如下代碼更改hexo-server運行時的端口號:
server:
port: 4001
compress: true
header: true
5、重新輸入命令:hexo s --debug 開啟服務
6、當看到Hexo is running at http://localhost:4001 說明已經啟動成功,打開http://localhost:4001 ,
看到站點的外觀與下圖所示類似時即說明已成功安裝 NexT 主題。