NexT主题
基础
NexT是一款基于Hexo静态网页框架的主题,提供4种样式选择,支持多种插件丰富功能。
github:https://github.com/next-theme/hexo-theme-next
文档地址:https://theme-next.js.org/
配置说明:https://theme-next.js.org/docs/theme-settings/
安装环境
npm 8.0.0+
hexo 4.0.0+
安装
NPM方式
进入Blog文件夹中,执行
1 | npm install hexo-theme-next |
GIT方式
进入Blog/themes文件夹中,执行
1 | git clone https://github.com/next-theme/hexo-theme-next |
两种方式任选一种,通过npm方式安装的主题目录在node_models
文件夹中,后者在themes
文件夹中
激活NexT主题
在Blog下的config.yml配置文件中设置theme属性:
1 | theme: next |
配置设置
在NexT主题也有一个config.yml配置文件,为了更合理的激活主题的配置,可以将node_models或者themes中对应的NexT主题文件夹下的config.yml文件改名为config.next.yml,并复制到Blog文件夹下,当需要设置主题的样式和功能是可以更改config.next.yml文件。
1 | # Installed through npm |