天天看點

Hexo Next 5.x 更新 6.x

原文位址

  • 下載下傳 Next 6 主題,解壓縮并重命名為next6,放置于

    \themes\

    目錄下,這樣保留舊版本的 next 主題,可以随時切換回去。
  • 修改站點配置檔案

    _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   # 重新編譯/釋出
               

繼續閱讀