Hexo-Next主题配置文件

本文最后更新于:2 个月前

Hexo-Next主题配置文件注释翻译

正文部分

Hexo-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
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
# ===============================================================
# 建议使用Alternate Theme Config来配置NexT
# 修改此文件可能导致合并冲突
# 参见网址: https://theme-next.js.org/docs/getting-started/configuration
# ===============================================================

# ---------------------------------------------------------------
# 主题核心配置设置
# 参见网址: https://theme-next.js.org/docs/theme-settings/
# ---------------------------------------------------------------

# 允许缓存内容生成。
cache:
enable: true

# 在hexo生成后删除不必要的文件。
minify: false

# 定义自定义文件路径。
# 在站点目录“source/_data”中创建您的自定义文件,并在下面取消所需文件的注释。
custom_file_path:
#head: source/_data/head.njk
#header: source/_data/header.njk
#sidebar: source/_data/sidebar.njk
#postMeta: source/_data/post-meta.njk
#postBodyEnd: source/_data/post-body-end.njk
#footer: source/_data/footer.njk
#bodyEnd: source/_data/body-end.njk
#variable: source/_data/variables.styl
#mixin: source/_data/mixins.styl
#style: source/_data/styles.styl


# ---------------------------------------------------------------
# 方案设置
# ---------------------------------------------------------------

# 方案
scheme: Muse
#scheme: Mist
#scheme: Pisces
#scheme: Gemini

# 夜间模式
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
#android_manifest: /manifest.json

# 自定义标志(警告:不支持Mist方案)
custom_logo: #/uploads/custom-logo.jpg

# 知识共享4.0国际许可。
# See: https://creativecommons.org/about/cclicenses/
creative_commons:
# Available values: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | cc-zero
license: by-nc-sa
# Available values: big | small
size: small
sidebar: false
post: false
# 如果您喜欢CC许可的翻译版本,您可以设置语言值,例如. deed.zh
# CC许可有39种语言,您可以在https://creativecommons.org上找到您需要的具体和正确的缩写
language:

# 打开图形设置
# See: https://hexo.io/docs/helpers#open-graph
open_graph:
enable: true
options:
#twitter_card: <twitter:card>
#twitter_id: <twitter:creator>
#twitter_site: <twitter:site>
#twitter_image: <twitter:image>
#google_plus: <g+:profile_link>
#fb_admins: <fb:admin_id>
#fb_app_id: <fb:app_id>


# ---------------------------------------------------------------
# 菜单设置
# ---------------------------------------------------------------

# Usage: `Key: /link/ || icon`
# Key是菜单项的名称。如果此项的翻译可用,则将加载翻译后的文本,否则将使用Key名称。Key区分大小写。
# ' || '分隔符前的值是目标链接,' || '分隔符后的值是字体Awesome图标的名称。
# 外部url应该以http://或https://开头
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

# 启用/禁用菜单图标/项目徽章。
menu_settings:
icons: true
badges: false


# ---------------------------------------------------------------
# 侧栏设置
# See: https://theme-next.js.org/docs/theme-settings/sidebar
# ---------------------------------------------------------------

sidebar:
# 侧边栏的位置。
position: left
#position: right

# 手动定义侧边栏宽度。如果注释,将是默认的:
# Muse | Mist: 320
# Pisces | Gemini: 240
#width: 300

# 侧边栏显示(仅适用于Muse | Mist),可用值:
# - post expand on posts automatically. Default.
# - always expand for all pages automatically.
# - hide expand only when click on the sidebar toggle icon.
# - remove totally remove sidebar including sidebar toggle.
display: post

# 侧边栏内边距(以像素为单位)。
padding: 18
# 从顶部菜单栏的侧边栏偏移(以像素计)(只针对 Pisces | Gemini).
offset: 12

# 侧边栏头像
avatar:
# 替换默认图像并在这里设置url。
url: #/images/avatar.gif
# 如果为true,头像将以圆圈的形式显示。
rounded: false
# 如果为true,头像将随着光标旋转。
rotated: false

# 侧边栏中的文章/类别/标签。
site_state: true

# 社交网站
# Usage: `Key: permalink || icon`
# Key是显示给终端用户的链接标签。
# ' || '分隔符前的值是目标永久链接,' || '分隔符后的值是字体Awesome图标的名称。
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

social_icons:
enable: true
icons_only: false
transition: false

# 博客滚动
links_settings:
icon: fa fa-globe
title: Links
# 可用值: block | inline
layout: block

links:
#Title: https://example.com

# 侧边栏中的目录
# Front-matter variable (nonsupport wrap expand_all).
toc:
enable: true
# 自动添加列表数量到文章目录中。
number: true
# 如果为true,如果标题宽度大于侧边栏宽度,则所有单词将放在下一行。
wrap: false
# 如果为true,将显示帖子中所有级别的文章目录,而不是激活的部分
expand_all: false
# 文章目录生成的最大深度。
max_depth: 6


# ---------------------------------------------------------------
# 页脚设置
# See: https://theme-next.js.org/docs/theme-settings/footer
# ---------------------------------------------------------------

# 在页脚中显示多语言切换器。
language_switcher: false

footer:
# 指定网站设置的年份。如果没有定义,则使用当前年份。
# since: 2021

# 年份和版权信息之间的图标。
icon:
# Icon name in Font Awesome. See: https://fontawesome.com/icons
name: fa fa-heart
# 如果你想要图标动起来,将它设置为true。
animated: false
# 改变图标的颜色,使用十六进制代码。
color: "#ff0000"

# 如果没有定义, 将使用Hexo的配置文件`_config.yml`中的`author`
copyright:

# 由 Hexo & NexT 强力驱动
powered: true

# 面向中国用户的公安ICP备案信息. See: https://beian.miit.gov.cn, http://www.beian.gov.cn
beian:
enable: false
icp:
# 公安ICP备案数字
gongan_id:
# 公安ICP备案全数字
gongan_num:
# 备案信息图标. See: http://www.beian.gov.cn/portal/download
gongan_icon_url:


# ---------------------------------------------------------------
# 文章设置
# See: https://theme-next.js.org/docs/theme-settings/posts
# ---------------------------------------------------------------

# 自动撷取正文中的描述作为摘要文本。
excerpt_description: true

# 阅读更多按钮
# 如果为true,则在摘录部分将显示“阅读更多”按钮。
read_more_btn: true

# 文章显示设置
post_meta:
item_text: true
created_at: true
updated_at:
enable: true
another_day: true
categories: true

# 文章字数统计设置
# Dependencies: https://github.com/next-theme/hexo-word-counter
symbols_count_time:
separated_meta: true
item_text_total: false

# 使用图标代替符号#来表示文章底部的标签
tag_icon: false

# 捐赠(赞助)设置
# Front-matter variable (nonsupport animation).
reward_settings:
# 如果为true,默认情况下每篇文章都会显示一个捐赠按钮。
enable: false
animation: false
#comment: Buy me a coffee

reward:
#wechatpay: /images/wechatpay.png
#alipay: /images/alipay.png
#paypal: /images/paypal.png
#bitcoin: /images/bitcoin.png

# 通过Telegram Channel、Twitter等订阅。
# Usage: `Key: permalink || icon` (Font Awesome)
follow_me:
#Twitter: https://twitter.com/username || fab fa-twitter
#Telegram: https://t.me/channel_name || fab fa-telegram
#WeChat: /images/wechat_channel.jpg || fab fa-weixin
#RSS: /atom.xml || fa fa-rss

# 相关热门帖子
# Dependencies: https://github.com/sergeyzwezdin/hexo-related-posts
related_posts:
enable: false
title: # 自定义标题,留空以使用默认标题
display_in_home: false

# 文章编辑
# 轻松地在线浏览和编辑博客源代码。
post_edit:
enable: false
url: https://github.com/user-name/repo-name/tree/branch-name/subdirectory-name/ # Link for view source
#url: https://github.com/user-name/repo-name/edit/branch-name/subdirectory-name/ # Link for fork & edit

# 如果存在,在文章页脚中显示上一篇文章和下一篇文章
# Available values: left | right | false
post_navigation: left


# ---------------------------------------------------------------
# 自定义页面设置
# See: https://theme-next.js.org/docs/theme-settings/custom-pages
# ---------------------------------------------------------------

# 标签页的标签云设置。
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


# ---------------------------------------------------------------
# 杂项主题设置
# See: https://theme-next.js.org/docs/theme-settings/miscellaneous
# ---------------------------------------------------------------

# 预连接字体和插件的CDN。
# For more information: https://www.w3.org/TR/resource-hints/#preconnect
preconnect: false

# 设置文章/页面中的文本对齐方式。
text_align:
# Available values: start | end | left | right | center | justify | justify-all | match-parent
desktop: justify
mobile: justify

# 在宽度较窄的设备上减少填充/边距缩进。
mobile_layout_economy: false

# 浏览器标题面板颜色。
theme_color:
light: "#222"
dark: "#222"

# 覆盖浏览器的默认行为。
body_scrollbar:
# 将滚动条放置在内容上。
overlay: false
# 即使内容没有溢出,也要显示滚动条。
stable: false

codeblock:
# Highlight代码主题
# All available themes: https://theme-next.js.org/highlight/
theme:
light: default
dark: stackoverflow-dark
prism:
light: prism
dark: prism-dark
# 在代码块上添加复制按钮
copy_button:
enable: true
# Available values: default | flat | mac
style: mac

back2top:
enable: true
# 侧边栏的回到顶部。
sidebar: true
# 回到顶部的按钮上显示百分比
scrollpercent: true

# 阅读进度条
reading_progress:
enable: true
# Available values: left | right
start_at: left
# Available values: top | bottom
position: top
reversed: false
color: "#37c6c0"
height: 3px

# 书签支持
bookmark:
enable: false
# 自定义书签的颜色。
color: "#222"
# 如果为自动,则在关闭页面或单击书签图标时保存阅读进度。
# 如果是手动的,只能通过点击书签图标来保存。
save: auto

# “在GitHub上关注我”的横幅。
github_banner:
enable: false
permalink: https://github.com/yourname
title: Follow me on GitHub


# ---------------------------------------------------------------
# 字体设置
# ---------------------------------------------------------------
# 在谷歌字体上查找字体 (https://fonts.google.com)
# 这里设置的所有字体都将具有以下样式:
# light | light italic | normal | normal italic | bold | bold italic
# 注意设置过多的字体会导致网站运行缓慢
# ---------------------------------------------------------------
# Web安全字体推荐用于' global '(和' title '):
# Arial | Tahoma | Helvetica | Times New Roman | Courier New | Verdana | Georgia | Palatino | Garamond | Comic Sans MS | Trebuchet MS
# ---------------------------------------------------------------

font:
enable: false

# 字体主机的Uri, e.g. https://fonts.googleapis.com (Default).
host:

# 字体选项:
# `external: true` 将从上面的' host '加载这个字体族。
# `family: Times New Roman`. 没有任何引号
# `size: x.x`. Use `em` as unit. Default: 1 (16px)

# 用于<body>内所有元素的全局字体设置。
global:
external: true
family: Lato
size:

# 网站标题的字体设置(.site-title)。
title:
external: true
family:
size:

# 标题的字体设置 (<h1> to <h6>).
headings:
external: true
family:
size:

# 文章的字体设置 (.post-body).
posts:
external: true
family:

# <code>和代码块的字体设置</code>
codes:
external: true
family:


# ---------------------------------------------------------------
# SEO Settings
# See: https://theme-next.js.org/docs/theme-settings/seo
# ---------------------------------------------------------------

# 如果为true,站点-subtitle将被添加到索引页面。
# 记得设置你的网站-副标题 in Hexo `_config.yml` (e.g. subtitle: Subtitle)
index_with_subtitle: false

# 自动添加外部URL与Base64加密和解密。
exturl: false
# 如果为true,则每个外部URL将附加一个图标
exturl_icon: true

# Google Webmaster tools verification.
# See: https://developers.google.com/search
google_site_verification:

# 必应网站管理员工具验证。
# See: https://www.bing.com/webmasters
bing_site_verification:

# Yandex Webmaster tools verification.
# See: https://webmaster.yandex.ru
yandex_site_verification:

# Baidu Webmaster tools verification.
# See: https://ziyuan.baidu.com/site
baidu_site_verification:


# ---------------------------------------------------------------
# 第三方插件 & 服务设置
# See: https://theme-next.js.org/docs/third-party-services/
# More plugins: https://github.com/next-theme/awesome-next
# 您可能需要安装相应的依赖包
# ---------------------------------------------------------------

# 数学公式渲染支持
# 警告:请根据文档安装/卸载相关渲染器。
# See: https://theme-next.js.org/docs/third-party-services/math-equations
# Server-side plugin: https://github.com/next-theme/hexo-filter-mathjax
math:
# Default (false) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in front-matter.
# If you set it to true, it will load mathjax / katex script EVERY PAGE.
every_page: false

mathjax:
enable: false
# Available values: none | ams | all
tags: none

katex:
enable: false
# See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
copy_tex: false

# 在您的网站上轻松启用快速Ajax导航。
# For more information: https://github.com/next-theme/pjax
pjax: true

# fantybox是一个工具,它提供了一种漂亮而优雅的方式为图像添加缩放功能。
# For more information: https://fancyapps.com/fancybox/
fancybox: false

# A JavaScript library for zooming images like Medium.
# Warning: Do not enable both `fancybox` and `mediumzoom`.
# For more information: https://medium-zoom.francoischalifour.com
mediumzoom: false

# 惰性加载图片的香草JavaScript插件。
# For more information: https://apoorv.pro/lozad.js/demo/
lazyload: true

# Pangu Support
# For more information: https://github.com/vinta/pangu.js
# Server-side plugin: https://github.com/next-theme/hexo-pangu
pangu: false

# Quicklink Support
# For more information: https://getquick.link
# Front-matter variable (nonsupport home archive).
quicklink:
enable: false

# 主页和存档页面可以通过下面的主页和存档选项进行控制。
# 此配置项独立于“enable”。
home: false
archive: false

# Default (true)将在加载事件触发后初始化quicklink。
delay: true
# 自定义浏览器必须执行预取的时间(以毫秒为单位)。
timeout: 3000
# Default (true)将尝试使用fetch() API,如果支持(而不是link[rel=prefetch])。
priority: true


# ---------------------------------------------------------------
# 评论设置
# See: https://theme-next.js.org/docs/third-party-services/comments
# ---------------------------------------------------------------

# 多评论系统支持
comments:
# Available values: tabs | buttons
style: tabs
# 选择一个默认显示的评论系统。
# Available values: disqus | disqusjs | changyan | livere | gitalk | utterances
active:
# 设置' true '意味着记住访问者选择的评论系统。
storage: true
# 惰性加载所有评论系统。
lazyload: true
# Modify texts or order for any naves, here are some examples.
nav:
#disqus:
# text: Load Disqus
# order: -1
#gitalk:
# order: -2

# Disqus
# For more information: https://disqus.com
disqus:
enable: false
shortname:
count: true

# DisqusJS
# For more information: https://disqusjs.skk.moe
disqusjs:
enable: false
# API Endpoint of Disqus API (https://disqus.com/api/docs/).
# 如果能够连接到Disqus api,请将api保留为空。否则需要反向代理。
# For example:
# api: https://disqus.skk.moe/disqus/
api:
apikey: # Register new application from https://disqus.com/api/applications/
shortname: # See: https://disqus.com/admin/settings/general/

# Changyan
# For more information: https://changyan.kuaizhan.com
changyan:
enable: false
appid:
appkey:

# LiveRe comments system
# You can get your uid from https://livere.com/insight/myCode (General web site)
livere_uid: # <your_uid>

# Gitalk
# For more information: https://gitalk.github.io
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
# When the official proxy is not available, you can change it to your own proxy address
proxy: https://cors-anywhere.azm.workers.dev/https://github.com/login/oauth/access_token # This is official proxy address
# Gitalk的显示语言取决于用户的浏览器或系统环境
# 如果希望每个访问站点的人都看到统一的语言,可以设置强制语言值
# Available values: en | es-ES | fr | ru | zh-CN | zh-TW
language:

# Utterances
# For more information: https://utteranc.es
utterances:
enable: false
repo: user-name/repo-name # Github repository owner and name
# Available values: pathname | url | title | og:title
issue_term: pathname
# Available values: github-light | github-dark | preferred-color-scheme | github-dark-orange | icy-dark | dark-blue | photon-dark | boxy-light
theme: github-light

# Isso
# For more information: https://posativ.org/isso/
isso: # <data_isso>


# ---------------------------------------------------------------
# 文章工具 & 内容分享服务
# See: https://theme-next.js.org/docs/third-party-services/post-widgets
# ---------------------------------------------------------------

# 每篇文章的星级支持。
# To get your ID visit https://widgetpack.com
rating:
enable: false
id: # <app_id>
color: "#fc6423"

# AddThis Share. See: https://www.addthis.com
# Go to https://www.addthis.com/dashboard to customize your tools.
add_this_id:


# ---------------------------------------------------------------
# 统计与分析
# See: https://theme-next.js.org/docs/third-party-services/statistics-and-analytics
# ---------------------------------------------------------------

# Google Analytics
# See: https://analytics.google.com
google_analytics:
tracking_id: # <app_id>
# 默认情况下,NexT会在你的站点上加载一个外部gtag.js脚本。
# 如果您只需要页面浏览量功能,请将以下选项设置为true以获得更好的性能。
only_pageview: false

# Baidu Analytics
# See: https://tongji.baidu.com
baidu_analytics: # <app_id>

# Growingio Analytics
# See: https://www.growingio.com
growingio_analytics: # <project_id>

# Cloudflare Web Analytics
# See: https://www.cloudflare.com/web-analytics/
cloudflare_analytics:

# Microsoft Clarity Analytics
# See: https://clarity.microsoft.com/
clarity_analytics: # <project_id>

# 显示每个文章的访问量。
# You can visit https://www.leancloud.cn to get AppID and AppKey.
leancloud_visitors:
enable: false
app_id: # <your app id>
app_key: # <your app key>
# Required for apps from CN region
server_url: # <your server url>
# Dependencies: https://github.com/theme-next/hexo-leancloud-counter-security
# 如果你不关心leancloud counter的安全性,只想直接使用它
# (without hexo-leancloud-counter-security plugin), set `security` to `false`.
security: true

# 另一个显示每个文章的访问量的工具。
# Visit https://console.firebase.google.com/u/0/ to get apiKey and projectId.
# Visit https://firebase.google.com/docs/firestore/ to get more information about firestore.
firestore:
enable: false
collection: articles # 必需的, 用于访问firestore数据库的字符串集合名称
apiKey: # 必需的
projectId: # 必需的

# Show Views / Visitors of the website / page with busuanzi.
# For more information: http://ibruce.info/2015/04/04/busuanzi/
busuanzi_count:
enable: false
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


# ---------------------------------------------------------------
# 搜索服务
# See: https://theme-next.js.org/docs/third-party-services/search-services
# ---------------------------------------------------------------

# Algolia搜索
# For more information: https://www.algolia.com
algolia_search:
enable: false
hits:
per_page: 10

# 本地搜索
# Dependencies: https://github.com/next-theme/hexo-generator-searchdb
local_search:
enable: true
# 如果是自动,则通过更改输入触发搜索。
# 如果手动,按回车键或搜索按钮触发搜索。
trigger: auto
# 显示每篇文章的前n个结果,通过设置为-1显示所有结果
top_n_per_article: 1
# 将html字符串转义为可读字符串。
unescape: false
# 加载页面时预加载搜索数据。
preload: true


# ---------------------------------------------------------------
# 聊天服务
# See: https://theme-next.js.org/docs/third-party-services/chat-services
# ---------------------------------------------------------------

# 在侧边栏打开指定聊天小部件的按钮。
# 首先,您需要启用并配置聊天服务。
chat:
enable: false
icon: fa fa-comment # 图标名称在字体Awesome,设置为false禁用图标。
text: Chat # 按钮文本,改变它,如你所愿。

# Chatra 实时聊天支持
# For more information: https://chatra.com
# Dashboard: https://app.chatra.io/settings/general
chatra:
enable: false
async: true
id: # Visit Dashboard to get your ChatraID
#embed: # Unfinished experimental feature for developers. See: https://chatra.com/help/api/#injectto

# Tidio Support
# For more information: https://www.tidio.com
# Dashboard: https://www.tidio.com/panel/dashboard
tidio:
enable: false
key: # Public Key, get it from dashboard. See: https://www.tidio.com/panel/settings/developer

# Gitter Support
# For more information: https://gitter.im
gitter:
enable: false
room:


# ---------------------------------------------------------------
# 标签设置
# See: https://theme-next.js.org/docs/tag-plugins/
# ---------------------------------------------------------------

# 注释标记(引导标注)
note:
# 注意标签样式值:
# - simple bootstrap callout old alert style. Default.
# - modern bootstrap callout new (v2-v3) alert style.
# - flat flat callout style with background, like on Mozilla or StackOverflow.
# - disabled disable all CSS styles import of note tag.
style: simple
icons: false
# Offset lighter of background in % for modern and flat styles (modern: -12 | 12; flat: -18 | 6).
# Offset也应用于标签标记变量。此选项可以与禁用的注释标记一起工作。
light_bg_offset: 0

# Tabs tag
tabs:
# 使有长内容的标签的导航栏粘在顶部。
sticky: false
transition:
tabs: false
labels: true

# PDF标记
# NexT将尝试本地加载pdf文件,如果失败,将使用pdf.js。
# 所以,你必须安装pdf.js的依赖,如果你想使用pdf标签,并使它可用于所有浏览器。
# Dependencies: https://github.com/next-theme/theme-next-pdf
pdf:
enable: false
# Default height
height: 500px

# Mermaid tag
mermaid:
enable: false
# Available themes: default | dark | forest | neutral
theme:
light: default
dark: dark


# ---------------------------------------------------------------
# 动画设置
# ---------------------------------------------------------------

# 使用animation .css让所有东西都动起来。
# For more information: https://animate.style
motion:
enable: true
async: false
transition:
# 所有可用的转换变量: https://theme-next.js.org/animate/
post_block: fadeIn
post_header: fadeInDown
post_body: fadeInDown
coll_header: fadeInLeft
# 只在 Pisces | Gemini 方案下可用.
sidebar: fadeInUp

# 在页面加载期间在顶部的进度条。
# For more information: https://github.com/CodeByZach/pace
pace:
enable: false
# 所有可选颜色:
# black | blue | green | orange | pink | purple | red | silver | white | yellow
color: blue
# 所有可选主题:
# big-counter | bounce | barber-shop | center-atom | center-circle | center-radar | center-simple
# corner-indicator | fill-left | flat-top | flash | loading-bar | mac-osx | material | minimal
theme: minimal

# 帆布缎带
# For more information: https://github.com/hustcc/ribbon.js
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


# ---------------------------------------------------------------
# CDN的设置
# See: https://theme-next.js.org/docs/advanced-settings/vendors
# ---------------------------------------------------------------

vendors:
# The CDN provider of NexT internal scripts.
# Available values: local | jsdelivr | unpkg | cdnjs | custom
# Warning: If you are using the latest master branch of NexT, please set `internal: local`
internal: local
# The default CDN provider of third-party plugins.
# Available values: local | jsdelivr | unpkg | cdnjs | custom
# Dependencies for `plugins: local`: https://github.com/next-theme/plugins
plugins: jsdelivr
# Custom CDN URL
# For example:
# custom_cdn_url: https://cdn.jsdelivr.net/npm/${npm_name}@${version}/${minified}
# custom_cdn_url: https://cdnjs.cloudflare.com/ajax/libs/${cdnjs_name}/${version}/${cdnjs_file}
custom_cdn_url:

# Assets
# 使用CDN加速静态文件的交付
# js选项只在vendor .internal为本地时有效。
css: css
js: js
images: images

更多内容请在评论区留言讨论

Hexo-Next主题配置文件
https://superlovelace.top/2022/11/22/Hexo-Next/
作者
棱境
发布于
2022年11月22日
更新于
2023年11月22日
许可协议