版本管理
NexT
提供了两种方式:
NPM
安装,仅需在根目录下配置_config.next.yml
即可,不过此种方式不适合于源码修改;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
Hexo
和NexT
都通过各自的配置文件_config.yml
进行管理
Hexo
配置文件_config.yml
位于工程根目录;NexT
配置文件_config.yml
位于主题包根目录,即themes/next/_config.yml
下面将Hexo
配置文件称为Hexo _config.yml
,将NexT
配置文件称为NexT _config.yml