本站点Hexo配置文件分享

版本信息

hexo版本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[root@hexo ~]# hexo -v
hexo-cli: 4.3.2
os: linux 5.14.0-362.18.1.el9_3.0.1.x86_64 Rocky Linux 9.2 (Blue Onyx)
node: 16.20.2
v8: 9.4.146.26-node.26
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.19.1
modules: 93
nghttp2: 1.57.0
napi: 8
llhttp: 6.1.0
openssl: 3.0.7
cldr: 41.0
icu: 71.1
tz: 2022a
unicode: 14.0

next主题版本

1
2
3
4
========================================
NexT version 8.20.0
Documentation: https://theme-next.js.org
========================================

hexo配置文件

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[root@hexo Hexo]# egrep -v '^#|^$' _config.yml 
title: 纵横四海
subtitle: 天道酬勤
description: 个人博客
keywords: linux,windows,oracle,shell,exchagne,vmware
author: 纵横四海
language: zh-CN
timezone: Asia/Shanghai
url: https://blog.aiyo.space
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
syntax_highlighter: highlight.js
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
index_generator:
path: ''
per_page: 10
order_by: -date
default_category: uncategorized
category_map:
tag_map:
meta_generator: true
date_format: YYYY-MM-DD
time_format: HH:mm:ss
updated_option: 'mtime'
per_page: 10
pagination_dir: page
include:
exclude:
ignore:
theme: next
deploy:
type: git
repo: git@github.com:1oker/xxx.github.io.git
branch: main
symbols_count_time:
total_symbols: false
total_time: false
search:
path: search.xml
field: post
content: true
format: html
encrypt:
abstract: 文章已被加密,请输入密码查看。
message: 请在这里输入密码。
wrong_pass_message: 密码错误。
wrong_hash_message: 文章不能被校验。
tags:
- {name: locked, password: xxxx}
- {name: encrypt, password: xxxx}
theme: shrink

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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
[root@hexo Hexo]# egrep -v '^ *#|^$' _config.next.yml 
cache:
enable: true
minify: true
custom_file_path:
style: source/_data/styles.styl
scheme: Muse
darkmode: true
favicon:
small: /images/favicon-16x16-next.png
medium: /images/favicon-32x32-next.png
apple_touch_icon: /images/apple-touch-icon-next.png
safari_pinned_tab: /images/logo.svg
custom_logo: #/uploads/custom-logo.png
creative_commons:
license: by-nc-nd
size: small
sidebar: false
post: true
language:
open_graph:
enable: true
options:
type: blog
menu:
home: / || fa fa-home
categories: /categories/ || fa fa-th
tags: /tags/ || fa fa-tags
archives: /archives/ || fa fa-archive
about: /about/ || fa fa-user
menu_settings:
icons: true
badges: false
sidebar:
position: right
width_expanded: 320
width_dual_column: 240
display: post
padding: 18
offset: 12
avatar:
url: /images/LZ.gif
rounded: false
rotated: false
site_state: true
social:
主页: https://aiyo.space || fa-solid fa-house
GitHub: https://github.com/1oker || fab fa-github
E-Mail: mailto:end-ing@live.cn || fa fa-envelope
social_icons:
enable: true
icons_only: false
transition: true
links_settings:
icon: fa fa-globe
layout: inline
links:
Hexo: https://hexo.io/zh-cn/docs/
NexT: https://theme-next.js.org/docs/getting-started/
toc:
enable: true
number: true
wrap: false
expand_all: false
max_depth: 6
language_switcher: false
footer:
icon:
name: fa fa-heart
animated: true
color: "#ff0000"
copyright:
powered: false
beian:
enable: false
icp:
gongan_id:
gongan_num:
gongan_icon_url:
excerpt_description: true
read_more_btn: true
post_meta:
item_text: true
created_at: true
updated_at:
enable: true
another_day: true
categories: true
symbols_count_time:
separated_meta: true
item_text_total: false
tag_icon: true
reward_settings:
enable: false
animation: false
reward:
follow_me:
WeChat: /images/wechat_qr.png || fab fa-weixin
related_posts:
enable: true
icon: fa fa-signs-post
post_edit:
enable: false
url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source
post_navigation: right
tagcloud:
min: 12 # Minimum font size in px
max: 30 # Maximum font size in px
amount: 200 # Total amount of tags
orderby: name # Order of tags
order: 1 # Sort order
calendar:
calendar_id: <required> # Your Google account E-Mail
api_key: <required>
orderBy: startTime
showLocation: false
offsetMax: 72 # Time Range
offsetMin: 4 # Time Range
showDeleted: false
singleEvents: true
maxResults: 250
preconnect: false
text_align:
desktop: justify
mobile: justify
mobile_layout_economy: false
theme_color:
light: "#222"
dark: "#222"
body_scrollbar:
overlay: false
stable: false
codeblock:
theme:
light: vs
dark: xt256
prism:
light: prism
dark: prism-dark
copy_button:
enable: true
style:
fold:
enable: true
height: 500
back2top:
enable: true
sidebar: false
scrollpercent: true
reading_progress:
enable: true
start_at: right
position: top
reversed: false
color: "#37c6c0"
height: 3px
bookmark:
enable: false
color: "#222"
save: auto
github_banner:
enable: true
permalink: https://github.com/1oker
font:
enable: false
host:
global:
external: true
family: Lato
size:
title:
external: true
family:
size:
headings:
external: true
family:
size:
posts:
external: true
family:
codes:
external: true
family:
index_with_subtitle: false
exturl: true
exturl_icon: true
google_site_verification:
bing_site_verification:
yandex_site_verification:
baidu_site_verification:
note:
style: simple
icons: false
light_bg_offset: 0
tabs:
sticky: false
transition:
tabs: false
labels: true
pdf:
enable: false
height: 500px
mermaid:
enable: false
theme:
light: default
dark: dark
wavedrom:
enable: false
math:
every_page: false
mathjax:
enable: false
tags: none
katex:
enable: false
copy_tex: false
pjax: true
fancybox: false
mediumzoom: true
lazyload: true
pangu: false
quicklink:
enable: true
home: true
archive: true
delay: true
timeout: 3000
priority: true
motion:
enable: true
async: false
transition:
menu_item: fadeInDown
post_block: fadeIn
post_header: fadeInDown
post_body: fadeInDown
coll_header: fadeInLeft
sidebar: fadeInUp
pace:
enable: true
color: green
theme: minimal
canvas_ribbon:
enable: false
size: 300 # The width of the ribbon
alpha: 0.6 # The transparency of the ribbon
zIndex: -1 # The display level of the ribbon
comments:
style: tabs
active:
storage: true
lazyload: false
nav:
disqus:
enable: false
shortname:
count: true
disqusjs:
enable: false
api:
apikey: # Register new application from https://disqus.com/api/applications/
shortname: # See: https://disqus.com/admin/settings/general/
changyan:
enable: false
appid:
appkey:
count: true
livere_uid: # <your_uid>
gitalk:
enable: false
github_id: # GitHub repo owner
repo: # Repository name to store issues
client_id: # GitHub Application Client ID
client_secret: # GitHub Application Client Secret
admin_user: # GitHub repo owner and collaborators, only these guys can initialize gitHub issues
distraction_free_mode: true # Facebook-like distraction free mode
proxy: https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token # This is official proxy address
language:
utterances:
enable: false
repo: user-name/repo-name # Github repository owner and name
issue_term: pathname
theme: github-light
isso: # <data_isso>
addtoany:
enable: false
buttons:
- facebook
- twitter
google_analytics:
tracking_id: # <app_id>
only_pageview: false
measure_protocol_api_secret:
baidu_analytics: # <app_id>
growingio_analytics: # <project_id>
cloudflare_analytics:
clarity_analytics: # <project_id>
matomo:
enable: false
server_url: # https://www.example.com/
site_id: # <your site id>
umami:
enable: false
script_url: # https://umami.example.com/script.js
website_id: # <your website id>
host_url: # <your umami site url>
plausible:
enable: false
script_url: # https://plausible.io/js/script.js
site_domain: # www.example.com
leancloud_visitors:
enable: false
app_id: # <your app id>
app_key: # <your app key>
server_url: # <your server url>
security: true
firestore:
enable: false
collection: articles # Required, a string collection name to access firestore database
apiKey: # Required
projectId: # Required
busuanzi_count:
enable: true
total_visitors: true
total_visitors_icon: fa fa-user
total_views: true
total_views_icon: fa fa-eye
post_views: true
post_views_icon: far fa-eye
algolia_search:
enable: false
hits:
per_page: 10
local_search:
enable: true
trigger: auto
top_n_per_article: 1
unescape: false
preload: false
chat:
enable: false
icon: fa fa-comment # Icon name in Font Awesome, set to `false` to disable icon.
chatra:
enable: false
async: true
id: # Visit Dashboard to get your ChatraID
tidio:
enable: false
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer
vendors:
internal: local
plugins: cdnjs
custom_cdn_url:
css: css
js: js
images: images