由 IIssNan 开发的 NexT 已经停止维护,我们采用的是社区维护版的 NexT v6 and v7,但原版的中文说明文档是编得极好的,是重要的参考来源^1。
不过由于社区版的和原版已经产生了较大区别,还是更推荐看社区版的说明文档^2。
本文一般是通过修改
主题配置文件
_config.yml
来实现各种配置,这种情况下不需要重新渲染发布等操作,修改完后直接保存再刷新网页即可看到效果。
主题设置
![3d7c06a48888c30a4d1ae6647d09f4a3.png](https://i-blog.csdnimg.cn/blog_migrate/470f58e59c7d28eb108e3ca632ea534a.jpeg)
Scheme 是 NexT
提供的一种特性,借助于 Scheme,NexT
为你提供多种不同的外观。同时,几乎所有的配置都可以 在 Scheme 之间共用。目前 NexT
支持三种 Scheme,他们是:
Muse
→ 默认 Scheme,这是NexT
最初的版本,黑白主调,大量留白Mist
→ Muse 的紧凑版本,整洁有序的单栏外观Pisces
→ 双栏 Scheme,小家碧玉似的清新Gemini
→ 看起来像Pisces
,但是不同文章直接用块隔开,看起来更舒服
个人比较推荐 Gemini
,其次Mist
。
Scheme 的切换通过更改 主题配置文件,搜索 scheme 关键字。 你会看到有四行 scheme 的配置,将你需用启用的 scheme 前面注释 #
去除即可。
# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini
菜单设置
可以看到目前为止我们的主题菜单中只有两个默认的选项Home
和Archive
,我们还可以添加tag
、about
、category
等选项^3。
我们先在HexoBlogthemesnext
下找到 主题配置文件 _config.yml
中找到Menu Settings
。
# ---------------------------------------------------------------
# Menu Settings
# ---------------------------------------------------------------
# When running the site in a subdirectory (e.g. domain.tld/blog), remove the leading slash from link value (/archives -> archives).
# Usage: `Key: /link/ || icon`
# Key is the name of menu item. If the translation for this item is available, the translated text will be loaded, otherwise the Key name will be used. Key is case-senstive.
# Value before `||` delimeter is the target link.
# Value after `||` delimeter is the name of FontAwesome icon. If icon (with o