Skip to content

版本管理

NexT提供了两种方式:

  1. NPM安装,仅需在根目录下配置_config.next.yml即可,不过此种方式不适合于源码修改;
  2. GIT安装,安装源码到/path/to/themes/

GIT安装

下载最新的master分支:

$ git clone https://github.com/next-theme/hexo-theme-next themes/next

下载指定版本的源码:

$ git clone --branch v8.2.2 https://github.com/next-theme/hexo-theme-next themes/next

配置

修改Hexo _config.yml,配置当前使用主题:

# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
# theme: landscape
theme: next

_config.yml

HexoNexT都通过各自的配置文件_config.yml进行管理

  • Hexo配置文件_config.yml位于工程根目录;
  • NexT配置文件_config.yml位于主题包根目录,即themes/next/_config.yml

下面将Hexo配置文件称为Hexo _config.yml,将NexT配置文件称为NexT _config.yml

相关阅读