Hexo-Theme-Next-Configuration

Hexo Theme Next Configuration

创建主题配置文件

1
2
3
4
# Installed through npm
cp node_modules/hexo-theme-next/_config.yml _config.next.yml
# Installed through Git
cp themes/next/_config.yml _config.next.yml

https://theme-next.js.org/docs/getting-started/configuration.html

修改主题

https://theme-next.js.org/docs/theme-settings/

Use <!-- more --> in your article to break your article manually, which is recommended by Hexo.

修改主题后实时预览

1
hexo clean && hexo g && hexo s

Next主题配置修改:

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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
vim _config.next.yml

...
# Schemes
#scheme: Muse
#scheme: Mist
#scheme: Pisces
scheme: Gemini

# Dark Mode
darkmode: false

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
#commonweal: /404/ || fa fa-heartbeat

# Sidebar Avatar
avatar:
# Replace the default image and set the url here.
url: avatar.gif #/images/avatar.gif
# If true, the avatar will be displayed in circle.
rounded: true
# If true, the avatar will be rotated with the cursor.
rotated: true

social:
GitHub: https://github.com/leiontong || fab fa-github
E-Mail: mailto:leion.tong@outlook.com || fa fa-envelope

links:
Leion.co: https://www.leion.co

body_scrollbar:
# Place the scrollbar over the content.
overlay: true
# Present the scrollbar even if the content is not overflowing.
stable: false

# `Follow me on GitHub` banner in the top-right corner.
github_banner:
enable: true
permalink: https://github.com/leiontong
title: Follow me on GitHub

# Google Analytics
# See: https://analytics.google.com
google_analytics:
tracking_id: UA-99348322-1
# By default, NexT will load an external gtag.js script on your site.
# If you only need the pageview feature, set the following option to true to get a better performance.
only_pageview: false