Next主题安装
NexT Installation
1.cd hexo-site (root directory)
1 | cd jarvis #hexo 根目录 |
2.Downloading NexT
If you know about Git, you can clone the whole repository and update it in any time with git pull command instead of downloading archive manually.
1 | git clone https://github.com/next-theme/hexo-theme-next themes/next |
3.Upgrading NexT
A new version of NexT will be released every month.You can update NexT by the following command.
1 | cd hexo-site #hexo-site =/My_Blog(hexo)/jarvis |
NexT configuration
Enabling NexT
Like all Hexo themes, after you download it, open Hexo config file, find theme option, and change its value to next (or another theme directory name).
1 | theme: next # _config.yml文档内 |
Do not recommend directly modifying the NexT config file
It is quite often running into conflict status when updating NexT theme via git pull, or need to merge configurations manually when upgrading to new releases.
In order to resolve this issue, we recommend using the Alternate Theme Config feature to configure theme NexT.
Alternate Theme Config
1.Please ensure you are using Hexo 5.0 or later.
2.Create a config file in site’s root directory, e.g. _config.next.yml.
3.Copy needed NexT theme options from NexT config file into this config file. If it is the first time to install NexT, then copy the whole NexT config file by the following command:
1 | # Installed through Git |