原文位址
- 下載下傳 Next 6 主題,解壓縮并重命名為next6,放置于
目錄下,這樣保留舊版本的 next 主題,可以随時切換回去。\themes\
- 修改站點配置檔案
,指定使用新主題_config.yml
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: next6
- 修改主題語言設定
#language: zh-Hans # next 5.x
language: zh-CN # next 6
- 修改主題配置檔案
,比較舊版本主題配置檔案\themes\next6\_config.yml
中改動的地方,一一修改到新版本中。_config.yml
- 舊版本主題個性化定制的檔案複制到新版本主題對應目錄下:
- next/source/css/_custom/*
- next/source/css/_variables/*
- next/layout/_custom/*
- 執行指令:
hexo clean # 清理舊檔案 hexo d -g # 重新編譯/釋出