NexT 主题配置

安装 NexT

将主题文件拷贝至站点目录的 themes 目录下, 然后修改下配置文件即可。安装步骤如下。

下载主题

在终端窗口下,定位到 Hexo 站点目录下。使用 Git clone 代码:

$ cd your-hexo-site
$ git clone https://github.com/iissnan/hexo-theme-next themes/next


启用主题

打开配置文件 _config.yml , 找到 theme 字段,并将其值更改为 next

theme: next


主题设定

选择 Scheme

目前 NexT 支持三种 Scheme,他们是:

  • Muse - 默认 Scheme,这是 NexT 最初的版本,黑白主调,大量留白
  • Mist - Muse 的紧凑版本,整洁有序的单栏外观
  • Pisces - 双栏 Scheme,小家碧玉似的清新

修改主题配置文件 \hexo\themes\next\_config.yml,将 Scheme 设置为 Pisces

1
2
3
4
# Schemes
# scheme: Muse
# scheme: Mist
scheme: Pisces

设置语言

打开配置文件 _config.yml , 将简体中文,配置如下:

language: zh-Hans

设置菜单

NexT 使用的是 Font Awesome 提供的图标,Font Awesome 提供了 600+ 的图标,可以满足绝大的多数的场景。
编辑主题配置文件 \hexo\themes\next\_config.yml,修改以下内容:

1
2
3
4
5
6
7
menu:
home: /
archives: /archives
#about: /about
#categories: /categories
tags: /tags
#commonweal: /404.html

设置头像

编辑主题配置文件 \hexo\themes\next\_config.yml, 修改字段 avatar, 值设置成头像的链接地址。

avatar: /images/avatar.png