因为NexT主题的配置非常多,此处就不一一列举了。

1. 主题核心配置

1
2
# 当主题有新版本时,是否提醒,默认是false
reminder: false

2. 站点信息配置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
footer:
  # Beian ICP and gongan information for Chinese users. See: <https://beian.miit.gov.cn>, <http://www.beian.gov.cn>
  beian:
    enable: true
    icp: 鲁ICP备19044744号-3
    # The digit in the num of gongan beian.
    gongan_id:
    # The full num of gongan beian.
    gongan_num:
    # The icon for gongan beian. See: <http://www.beian.gov.cn/portal/download>
    gongan_icon_url:

3. 布局风格设置

1
2
3
4
5
6
7
8
# 共有4中风格,代表了4中页面布局方式
# scheme: Muse
# scheme: Mist
# scheme: Pisces
scheme: Gemini

# 设置开启暗黑模式,默认是关闭的
darkmode: true

4. 菜单设置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 默认只开启了一个首页、归档
menu:
  # 首页
  home: / || fa fa-home
  # 关于
  #about: /about/ || fa fa-user
  # 标签
  #tags: /tags/ || fa fa-tags
  # 分类
  #categories: /categories/ || fa fa-th
  # 归档
  archives: /archives/ || fa fa-archive
  #schedule: /schedule/ || fa fa-calendar
  #sitemap: /sitemap.xml || fa fa-sitemap
  # 公益404
  #commonweal: /404/ || fa fa-heartbeat
  
# Enable / Disable menu icons / item badges.
menu_settings:
  # 展示菜单的图标
  icons: true
  # 展示菜单下的数量统计,例如有8个标签,则“标签”菜单后面会展示8
  badges: false

5. 侧栏设置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 可以设置一些社交网站的链接,例如:GitHub: <https://github.com/zhdbest> || fab fa-github
social:
  #GitHub: <https://github.com/yourname> || fab fa-github
  #E-Mail: <mailto:yourname@gmail.com> || fa fa-envelope
  #Weibo: <https://weibo.com/yourname> || fab fa-weibo
  #Google: <https://plus.google.com/yourname> || fab fa-google
  #Twitter: <https://twitter.com/yourname> || fab fa-twitter
  #FB Page: <https://www.facebook.com/yourname> || fab fa-facebook
  #StackOverflow: <https://stackoverflow.com/yourname> || fab fa-stack-overflow
  #YouTube: <https://youtube.com/yourname> || fab fa-youtube
  #Instagram: <https://instagram.com/yourname> || fab fa-instagram
  #Skype: skype:yourname?call|chat || fab fa-skype

avatar:
  # Replace the default image and set the url here.
  # 可以使用:<http://img.hongmao.run/hongmao.jpeg>
  url: #/images/avatar.gif
  # If true, the avatar will be dispalyed in circle.
  # 如果设置为true,则头像会展示为圆形
  rounded: false
  # If true, the avatar will be rotated with the cursor.
  # 如果设置为true,则鼠标触碰到头像时会旋转
  rotated: false
  
# Table of Contents in the Sidebar
# Front-matter variable (unsupport wrap expand_all).
toc:
  # 开启后,在文章页面菜单栏会展示“文章目录”
  enable: true
  # Automatically add list number to toc.
  # 自动添加目录的序号,例如,你写了一个一级标题“一、简介”,在“文章目录”中会展示“1. 一、文章目录”
  number: true
  # If true, all words will placed on next lines if header width longer then sidebar width.
  wrap: false
  # If true, all level of TOC in a post will be displayed, rather than the activated part of it.
  expand_all: false
  # Maximum heading depth of generated toc.
  # 最大支持几级标题
  max_depth: 6

6. Misc主题设置

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
codeblock:
  # Code Highlight theme
  # Available values: normal | night | night eighties | night blue | night bright | solarized | solarized dark | galactic
  # See: https://github.com/chriskempson/tomorrow-theme
  # 代码高亮主题
  highlight_theme: normal
  # Add copy button on codeblock
  copy_button:
    # 展示复制按钮
    enable: true
    # Show text copy result.
    # 展示复制结果
    show_result: true
    # Available values: default | flat | mac
    # 展示代码的样式
    style: mac

# Bookmark Support
# 本质上,开启书签功能后,既能记录首页的阅读位置又能记录文章的阅读位置,但是,此功能和“阅读全文”
# 有冲突,浏览某文章点击“阅读全文”时会自动从文章被折叠的位置开始展示,和此处书签功能存在冲突
bookmark:
  # 书签默认是关闭的
  enable: false
  # Customize the color of the bookmark.
  # 可自定义图标颜色
  color: "#222"
  # 如果设置自动保存:则关闭网页或者手动点击时均会保存,如果设置手动,则只有点击时保存
  # If auto, save the reading progress when closing the page or clicking the bookmark-icon.
  # If manual, only save it by clicking the bookmark-icon.
  save: auto

# Reading progress bar
# 阅读进度条
reading_progress:
  # 默认是关闭的
  enable: false
  # Available values: top | bottom
  # 进度条展示位置
  position: top
  color: "#37c6c0"
  height: 3px

参考文档:

  1. 开始使用 - NexT 使用文档 (iissnan.com)
  2. Hexo+NexT(三):Next主题配置详解_Guide2IT-CSDN博客_hexo next主题配置