-
Notifications
You must be signed in to change notification settings - Fork 4
/
_config.solitude.yml
953 lines (893 loc) · 31.6 KB
/
_config.solitude.yml
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
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
---
#---------------------------
# Hexo Theme Solitude
# Author: Valor Team
# Github: https://github.com/valor-x/hexo-theme-solitude
#
# 配置指南: https://solitude.js.org/
# 你可以从指南中获得更详细的说明
#
# Guide: https://solitude.js.org/
# You can get more detailed help from the guide
#
# 赞助:https://afdian.net/a/efu0u0
# sponsor: https://afdian.net/a/efu0u0
#---------------------------
# 站点设置
# site settings
site:
# Logo
name:
# 显示类型 (i_class/text/img)
# Display type (i_class/text/img)
class: text
# 具体内容 例如:solitude st-logo / Efu / /img/logo.png
# Specific content, for example: solitude st-logo / Efu / /img/logo.png
custom: Solitude
# 网页icon
# Web icon
siteIcon: /img/pwa/favicon.ico
# 页脚的Logo、加载动画默认的logo
# Logo in the footer, default logo for loading animation
icon: /img/pwa/favicon.ico
# 导航栏
# NavBar
nav:
# logo 箱子
# logo group
group:
项目: # 分类名称
Solitude: https://github.com/valor-x/hexo-theme-solitude || /img/pwa/favicon.ico # 子菜单名称(submenu name): 链接地址(address) || 图标(icon)
# 中心菜单
# center menu
menu:
文库: # 显示名称 / Display name
文章列表: /archives/ || st-folder-fill # 子菜单名称:路径 || 图标 / Submenu name: path || icon
全部分类: /categories/ || st-checkbox-multiple-blank-fill
全部标签: /tags/ || st-price-tag-fill
示例:
示例友链: /links/ || st-group-fill
宝藏博主: javascript:travelling() || st-gift-fill
特殊页面:
即刻短文: /essay/ || st-pencil-ruler-fill
我的装备: /equipment/ || st-laptop-line
在线工具: /tlink/ || st-tools-fill
音乐馆: /music/ || st-disc-fill
关于: /about/ || st-contacts-fill
留言板: /message/ || st-chat-fill
# 右侧按钮
# Button on the right
right:
random: true # 随机文章跳转 / random post button
console: true #控制台 / console
# 自定义按钮
# custom button
# 左至右
# from left to right
custom:
# - name: 开往 - 友链接力 # 显示文字 / Displayed text
# url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
# icon: st-train-line # 图标 / Icon
# onclick: # 点击事件 / Click event
# id: travellings_button # id
# 首页顶部样式
# Home top style
hometop:
enable: false # 是否打开 / if enable
# banner display
banner:
# 左上角显示大文字
# Large text displayed in the upper left corner
# tip:可使用html标签
# tip: html tags be used
title: 宁静致远<br>热爱生活
# 左上角显示小文字
# Small text displayed in the upper left corner
url: Hexo Theme Solitude
# 轮播icon
# Carousel icon
# tip: 76x76 size
icon:
Kotlin:
img: https://s3.qjqq.cn/47/660a7c68ab465.webp!color
color: "var(--efu-blue)"
Csharp:
img: https://s3.qjqq.cn/47/660a7c67ef1b3.webp!color
color: "var(--efu-purple)"
Golang:
img: https://s3.qjqq.cn/47/662f06bbaac36.webp!color
color: '#00ADD8'
Nuxt:
img: https://s3.qjqq.cn/47/660a7c68d3f44.webp!color
color: '#0E182A'
Sketch:
img: https://s3.qjqq.cn/47/660a7c697d83e.webp!color
color: var(--efu-white)
Flutter:
img: https://s3.qjqq.cn/47/662f05391fe92.webp!color
color: '#795549'
# 左下跳转按钮
# Banner lower left jump button
group:
热门: /tags/热门/ || st-fire-fill || linear-gradient(to right,#f65,#ffbf37)
教程: /tags/教程/ || st-book-mark-fill || linear-gradient(to right,#358bff,#15c6ff)
精选: /tags/精选/ || st-star-smile-fill || linear-gradient(to right,#18e7ae,#1eebeb)
# 右侧置顶列表(在文章的front matter中添加“recommend: true”)
# Right top list (add "recommend: true" in the front matter of the article)
recommendList:
# 左上角显示文字
# Large text displayed in the upper left corner
sup: 置顶
# 左下角大字
# Large text in the lower left corner
title: Solitude 主题文档
# 点击跳转链接
# Click the jump link
url: https://solitude.js.org/
# 显示背景图片
# Display background image
img: https://s3.qjqq.cn/47/660a80f2b8dcd.webp!color
# 阴影颜色
# Shadow color
color: "none"
# carousel
# 顶部推荐轮播图
# 使用方法:在文章的front matter中添加“recommend: true”
# tip:建议开了这个就不要开hometop,其功能类似
carousel: true
# --------------------------------------
# Aside Settings
# 侧边栏配置
aside:
# 值:about(关于我)、newestPost(最新文章)、allInfo(网站信息)、flip(公众号二维码)
# Values: about (info card), newestPost (latest article), allInfo (website information), flip (official account QR code)
# 在主页显示的侧边栏信息
# Sidebar information displayed on the homepage
home:
# 固定的信息(滑动不跟随)
# Fixed information (not followed by sliding)
noSticky: "about,doc,afdian,flip"
# 不固定的信息(滑动跟随)
# Unfixed information (sliding follow)
Sticky: "allInfo,ads"
# 在文章页显示的侧边栏信息
# Sidebar information displayed on the article page
post:
noSticky: "about,doc,flip"
Sticky: "newestPost,ads"
# 在页面中显示的侧边栏信息
# Sidebar information displayed on the
page:
noSticky: "about,flip"
Sticky: "newestPost,allInfo,ads"
position: 1 # left(0): 左侧 / right(1): 右侧
# 侧边栏个人信息卡片
# Sidebar personal information
card:
style: 1 # 0: Heo样式 :1: 设计样式
# 头像信息
# Avatar information
author:
# 头像
# Avatar
img: https://s3.qjqq.cn/47/6625c1a86d7fd.webp!color
# 表情图片链接
# Emoticon image link
# tip: 26x26 size
sticker:
# 点击作者名称跳转链接
# Click the author name to jump link
url: /about/
# 文案1
# label1
content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。
# 文案2
# label2
content2: 相信你可以在这里找到对你有用的知识和教程。
# 个人信息卡片底部的小图标,按照例子填写
# Small icons at the bottom of the personal information card, fill in according to the example
# 个人信息卡片顶部按钮的打招呼语句
# Greeting statement of the button at the top of the personal information card
sayhello:
morning: 一日之计在于晨
noon: 吃饱了才有力气干活
afternoon: 集中精力,攻克难关
night: 不要太劳累了,早睡更健康
goodnight: 睡个好觉,保证精力充沛
# 个人信息卡片顶部按钮的切换文字
# Switching text of the button at the top of the personal information card
sayhello2:
- 🤖️ 易用的优雅主题
- 🎨️ 个性化的设计风格
- 🎉️ 丰富的功能和插件
- 🚀️ 优秀的性能和体验
# 个人信息卡片底部的小图标,按照例子填写
information:
Github: https://github.com/valor-x/hexo-theme-solitude || st-github-line # 名称:链接 || 图标 / Name: link || icon
Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
# 二维码
# Official account QR code
flip:
# 右下角头像
# Avatar in the lower right corner
favicon:
# 正面
# Front
face: https://s3.qjqq.cn/47/662e0958919cb.webp!color
# 鼠标悬停翻转图片
# Mouse hover flip image
backface: https://s3.qjqq.cn/47/662e096d116a8.webp!color
# 背景色:var(--efu-blue) / #000 / rgba(0,0,0,0.5) / linear-gradient(to right,#f65,#ffbf37)
# Background color: var(--efu-blue) / #000 / rgba(0,0,0,0.5) / linear-gradient(to right,#f65,#ffbf37)
backcolor: "var(--efu-blue)"
# 页面目录
# Page directory
toc:
# 在文章页显示
# Display on the article page
post: true
# 在任意页显示
# Display on any page
page: false
# 开启后不悬停目录有模糊效果
# After opening, there is a fuzzy effect without hovering over the directory
vague: true
# 侧边栏文章列表
# Sidebar article list
tags:
# 是否显示标签
# Whether to display tags
enable: false
# 显示标签数量,当高于标签总数时,显示全部标签按钮
# Display the number of tags, when it is higher than the total number of tags, display all tags button
limit: 20
# 高亮显示标签列表
# Highlighted tag list
highlight_list:
# - Hexo
# 侧边栏归档
# aside archive
archive:
enable: false
# 显示类型
type: "month" # month: 按月 / year: 按年 : month: by month / year: by year
# 建站信息
# Website information
siteinfo:
# 文章数
# Number of articles
postcount: true
# 总字数
# The number of words on the web site
wordcount: true
# 访问量
# PV
pv: true
# 访客数
# UV
uv: true
# 最后更新日期
# Last update date
updatetime: true
# 建站时间
# Website creation time
runtimeenable: true
# 格式:yyyy-MM-dd hh-mm-ss
# Format: yyyy-MM-dd hh-mm-ss
runtime: "2024-05-04 00:00:00"
# 首页文章配置信息
# Configure information on the home page
index_post_list:
direction: row # row / column
content: 2 # 1: post.description / 2: 自动获取description或截取内容(Automatically get descriptions or screenshots) / 3: 只使用截取内容(Use only screenshots) / false: 不显示内容(No content is displayed)
length: 500 # 截取内容的长度 : The length of the screenshot content
cover: both # left: 在左侧 : left / right: 在右侧 : right / both: 两侧 : both
# 页面默认设置
# page default settings
page:
error: true # 404页面 / 404 page
tags: true # 标签页 / Tags page
categories: true # 分类页 / Categories page
default: # 默认值 / Default value
# 默认图片
# default cover
cover:
# - /img/default.png # 默认图片 / default cover
- https://api.qjqq.cn/api/Img?random=1
- https://api.qjqq.cn/api/Img?random=2
- https://api.qjqq.cn/api/Img?random=3
- https://api.qjqq.cn/api/Img?random=4
- https://api.qjqq.cn/api/Img?random=5
- https://api.qjqq.cn/api/Img?random=6
# 文章页默认设置
# post default settings
post:
default:
# 文章默认图片
# default cover
cover:
# - # 默认图片 / default cover
- https://api.qjqq.cn/api/Img?random=1
- https://api.qjqq.cn/api/Img?random=2
- https://api.qjqq.cn/api/Img?random=3
- https://api.qjqq.cn/api/Img?random=4
- https://api.qjqq.cn/api/Img?random=5
- https://api.qjqq.cn/api/Img?random=6
# 文章发布默认地址
# default post locate
locate: 衡阳
# 文章默认版权
# default post copyright
copyright:
enable: true
author:
url: /about/ # 点击头像跳转地址
img: # 显示头像,不填写默认显示site_icon
license: CC BY-NC-SA 4.0
licenurl: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
# 顶部文章简介
# Top article introduction
meta:
date: true # 发布日期 / Release date
updated: true # 更新日期 / Update date
locate: true # 位置 / Location
wordcount: true # 字数 / Number of words
readtime: true # 访问 / uv
pv: false # 浏览量 / pv
comment: true # 评论数 / Comment count
# 打赏
# reward
award:
enable: true
appreciators: /about # 赞赏记录 / Appreciative records
title: 感谢您的赞赏。
desc: 因为有你们的支持,我才体会到写文章的价值。
list:
- name: 支付宝
qcode: https://s3.qjqq.cn/47/66374315ebd08.webp!color
url: https://s3.qjqq.cn/47/663742160be01.webp!color
color: var(--efu-blue)
- name: 微信
qcode: https://s3.qjqq.cn/47/663742bac8e52.webp!color
url: https://s3.qjqq.cn/47/663742bac8e52.webp!color
color: var(--efu-green)
- name: 爱发电
qcode: https://s3.qjqq.cn/47/661ba8e695f17.webp!color
url: https://afdian.net/a/efu0u0/
color: var(--efu-purple)
# 分享按钮,需要是什么哪些按钮,填写后开启
share:
enable: true
list:
- qq
- weibo
- twitter
- facebook
- telegram
- whatsapp
- linkedin
# 版权中订阅按钮跳转链接,填写地址后开启
# Subscription button jump link in copyright
rss: /atom.xml
# 文章主题色获取
# Article theme color acquisition
covercolor:
enable: true
mode: api # local:本地取色 / api:img2color取色 : local: local color / api: img2color color
api: https://api.qjqq.cn/api/Imgcolor?img= # api地址 / api address
time: 43200000 # api取色间隔(毫秒),默认为12小时 / api color interval (milliseconds), default is 12 hours
# footer
footer:
enable: false
desc: 来自 Efu 的文章 # 介绍文字
button: # 跳转按钮
enable: true
name: 了解更多
url: /about/
# -------------------------
# 自定义主题
# 自定义配色
# custom theme color
# 注意:颜色值必须使用引号,如“#000”,否则可能会导致错误!
# Note: The color value must be enclosed in quotation marks, such as "#000", otherwise it may cause an error!
# --------------------------------------
theme_color:
dark: "#ffc848" # 暗色模式 / Dark mode
dark_op: "#f2b94b23" # 暗色模式透明 / Dark mode transparent
dark_op_deep: "#f2b94bdd" # 暗色模式透明深色 / Dark mode transparent dark
dark_none: "#f2b94b00" # 暗色模式透明无色 / Dark mode transparent colorless
light: "#425AEF" # 亮色模式 / Light mode
light_op: "#4259ef23" # 亮色模式透明 / Light mode transparent
light_op_deep: "#4259efdd" # 亮色模式透明深色 / Light mode transparent dark
light_none: "#4259ef01" # 亮色模式透明无色 / Light mode transparent colorless
# 主题显示模式调整
# theme display mode adjustment
# 主题支持三种模式:自动切换、暗色模式、亮色模式
# The theme supports three modes: automatic switching, dark mode, and light mode
# --------------------------------------
display_mode:
type: auto # auto: 自动切换 / dark: 暗色模式 / light: 亮色模式 / auto: automatic switching / dark: dark mode / light: light mode
universe: true # 开启后暗色模式下会显示星空背景 / After opening, the dark mode will display the starry sky background
# 文章底部推荐文章
# Recommended articles at the bottom of the article
# --------------------------------------
related_post:
enable: true
# 推荐文章数量
# Number of recommended articles
limit: 2
# 根据创建日期(created)或是更新日期(updated)
# According to the creation date (created) or the update date (updated)
date_type: created
# --------------------------------------
# Footer Settings
# 页脚配置
footer:
# 底部上方一排图标
# Bottom row of icons
information:
author: true # 是否显示 site_icon / enable site_icon in footer
left: # 左侧显示图标
Telegram: https://t.me/solitudePro || st-telegram-line
Github: https://github.com/valor-x/hexo-theme-solitude || st-github-line # 名称:链接 || 图标 / Name: link || icon
Mail: mailto:o@efu.me || st-mail-line
right: # 右侧显示图标
Bilibili: https://space.bilibili.com/1329819902 || st-bilibili-line
爱发电: https://afdian.net/a/efu0u0/ || st-afdian-line
Discord: https://discord.gg/Y8VEvVgW || st-discord-line
# 底部导航栏
# Bottom navigation bar
group:
主题:
源码: https://github.com/valor-x/hexo-theme-solitude
文档: https://solitude.js.org/
贡献: /contributing/
社区:
Telegram: https://t.me/solitudePro
Discord: https://discord.gg/Y8VEvVgW
支持:
Sponsor: https://github.com/sponsors/efuo
爱发电: https://afdian.net/a/efu0u0/
服务:
BlogFinder: https://bf.zzxworld.com/s/1237
协议:
版权协议: /cc/
隐私政策: /privacy/
Cookies: /cookies/
# 页脚随机友链
# Random links at footer
# warning: 打开前必须先配置links
# warning: links must be configured before opening
randomlink: true
# 隐私助手右侧弹窗,填写路径后开启
# Privacy assistant right pop-up window, fill in the path to open
privacy: /privacy/
# 版权(Copyright)
license: /cc/ # /license/
# 页脚右侧链接,例如:ICP备案号、公安备案号等
# Footer right link, such as: ICP filing number, public security filing number, etc.
links:
# 为了主题能够得到更多的支持,建议保留主题链接
# In order for the theme to get more support, it is recommended to keep the theme link
- name: 主题
url: https://github.com/valor-x/hexo-theme-solitude
- name: 作者
url: https://www.efu.me/
- name: 订阅
url: /atom.xml
# 404 页面(404 page)
errorpage:
# 图片
# image
img: https://s3.qjqq.cn/47/6635f3de9b224.webp!color
# 文字
# text
text: =awa= 页面走丢了
# 推荐文章列表
# Recommended article list
recommendList: true
# 即刻短文
# talk now
# 前置要求:需配置即刻短文页面
# Pre-requirements: talk now page needs to be configured
says:
enable: true
# 主页的即刻轮播条
# Talk carousel bar on the homepage
home_mini: true
# 1:张洪heo样式 / 2:Leonus样式
# 1: Zhang Hong heo style / 2: Leonus style
style: 1
# 即刻短文仅展示前n条
# Talk short text only shows the first n
strip: 30
# 留言板
# message board
# 前置要求:需配置留言板页面
# Pre-requirements: message board page needs to be configured
envelope:
enable: true
line: 10 # 显示行数
speed: 20 # 播放速度
hover: true # 鼠标悬停暂停
loop: true # 循环播放
# -------------------------
# meeting-api,用于界面中的音乐胶囊和音乐馆页,可自定义api,不会请勿动。
# meeting-api, used for music capsules and music halls in the interface, can customize api, do not move if you don't know.
meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
# 音乐馆页
# music page
music:
enable: true
# 音乐ID:歌单ID / 专辑ID / 歌手ID
# Music ID: playlist ID / album ID / singer ID
id: 8407304077
# 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
# Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
server: netease
# 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手
# Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
type: playlist
# 初始音量。0.8 = 80%,范围 0 到 1
# Initial volume. 0.8 = 80%, range 0 to 1
volume: 0.8
# 是否开启互斥模式,即同时只能有一个播放器播放
# Whether to enable mutex mode, that is, only one player can play at the same time
mutex: true
# 音乐胶囊
# capsule music
capsule:
enable: true
# 歌单id / playlist id
id: 8407304077
# 播放列表的服务商。netease:网易云 / tencent:腾讯 / kugou:酷狗 / xiami:小米 / baidu:百度
# Music service provider. netease: Netease Cloud / tencent: Tencent / kugou: Kugou / xiaomi: Xiaomi / baidu: Baidu
server: netease
# 播放列表的类型。song:单曲 / playlist:歌单 / album:专辑 / artist:歌手
# Type of playlist. song: Single / playlist: Playlist / album: Album / artist: Singer
type: playlist
# 快捷菜单你
# quick menu
keyboard:
enable: true # 是否开启键盘控制 / Whether to enable keyboard control
# 键盘控制配置
# Keyboard control configuration
list:
# name: 按键名称(name)
# key: 按键(Key)
# func: 方法(function)
# sco: sco内置方法(sco.'function')
# url: 跳转链接(link)
# ------------------
- name: 关闭快捷键功能
key: K
func: keyboard
- name: 打开中控台
key: A
sco: showConsole
- name: 播放/暂停音乐
key: M
sco: musicToggle
- name: 打开友情链接
key: L
url: "/links/"
# 复制
# Copy
copy:
enable: true
copyright: # Turn on Link copyright information after copying.(开启后将在默认增加版权信息)
enable: false
limit: 50 # word count. (字数)
# 懒加载
# lazyload
lazyload:
enable: true
field: site # post, site
# 加载中显示图片
# Loading display image
placeholder: https://s3.qjqq.cn/47/660a7f0ccb66b.gif!color
# 加载失败显示图片
# Loading failed display image
errorimg: https://s3.qjqq.cn/47/6635f44ee0991.webp!color
# 加载动画
# loading animation
loading:
# 全局加载动画
# Global loading animation
fullpage: true
# 顶部加载胶囊
# Top loading capsule
pace: true
#代码高亮增强
# code highlight
highlight:
enable: true
limit: 600 # 代码行高限制 / Code line limit
copy: true # 是否开启复制按钮 / Whether to enable the copy button
expand: true # 是否默认展开 / Whether to expand by default
# 代码块样式
# Code block style
theme: mac # default: 默认 / mac : apple terminal
# 代码配色
# Code color
color: github # default: 默认 / dark / funky / okaidia / tomorrow / twilight / darcula / solarized-dark / solarized-light / material / github
# 图片灯箱
# image lightbox
# warning:开启前下方的fancybox或mediumZoom必须打开一个
# warning: One of the fancybox or mediumZoom below must be turned on before turning on
lightbox: true
# fancybox
# https://fancyapps.com/fancybox/
fancybox: true
# mediumZoom
mediumZoom: false
# mermaid tags plugin
# https://mermaid.js.org/
mermaid: false
# Open Graph
# https://ogp.me/
# https://developers.facebook.com/docs/sharing/webmasters/
OpenGraph:
enable: true
options:
# twitter_card:
# twitter_image:
# twitter_id:
# twitter_site:
# google_plus:
# fb_admins:
# fb_app_id:
# 字数统计
# word count
# warning:开启前需要安装字数统计插件
# warning: You need to install the word count plugin before turning it on
wordcount: true
# 访问统计
# access statistics
busuanzi: true
busuanzi_use: 1 # 0: 原版 / 1: 青秸(other: 其它自定義的busuanzi平台)
# 搜索
# search
# warning:开启前需要安装搜索插件
# warning: You need to install the search plugin before turning it on
search:
enable: true
# algolia, local
type: local
# 推荐标签
# Recommended tags
tags:
# - Solitude
# - Hexo
algolia:
# hits:
# per_page: 6
local:
preload: false
CDN:
# Post Chat AI
# 后台地址:https://ai.tianli0.top/?InviteID=OZ3Z0V2R
tianli_talk:
enable: true
title: 智能客服与搜索
key: "efd0a84058a25af978278dd67927c53195ba" # https://ai.tianli0.top/?InviteID=OZ3Z0V2R
# 默认值
# backgroundColor: "var(--efu-main)",
# bottom: "60px",
option: #https://ai.tianli0.top/codeMaker.html
defaultInput: false
upLoadWeb: true
userTitle: Post Chat
userDesc: 你好,我是 Solitude 的智能客服,有什么可以帮助你的?
showInviteLink: "https://ai.tianli0.top/?InviteID=OZ3Z0V2R"
blackDom:
- .aplayer
# 文章摘要AI
# post abstract AI
post_ai:
enable: true
# 右侧显示的模型名称
# Model name displayed on the right
modelName: GPT 4
# key
# 具体获取方法见文档
# Specific acquisition method, see the document
key: efd0a84058a25af978278dd67927c53195ba
# 自介
# talk
talk: 我是 Efu 开发的摘要生成助理EfuGPT,EfuGPT在静态部署时进行摘要的撰写,并且在访客访问时通过EfuCorrection转译后的文本摘要实现工具。我在这里只负责已经生成的摘要显示,你无法与我直接沟通,但我可以回答一些预设的问题。
# 随机文章按钮
# Random post button
randomPost: true
# 举报链接,不填不显示
# Report link, do not fill in and do not display
report: https://www.efu.me/
# 底部提示
# Bottom tip
tips: 此内容根据文章生成,并经过人工审核,仅用于文章内容的解释与总结
# latex 公式支持
# latex formula support
# docs: https://solitude.js.org/configuration/extra#数学公式
katex:
enable: true
per_page: true # 是否在每页都加载 / Whether to load on each page
copytex: true # 是否开启复制公式 / Whether to enable copy formula
# 评论
# comment
# getting start: https://solitude.js.org/comments/comment
comment:
use: valine # waline, twikoo, valine, artalk
commentBarrage: true # 热评开关 / Hot comment switch
lazyload: false # 懒加载
count: true # 评论数展示
pv: false # 是否使用評論統計頁面訪問
avatar: https://cravatar.cn # Gravatar link
newest_comment:
enable: true
storage: .2 # 缓存时间 1: 1天 / .5 : 半天 / Cache time 1: 1 day .5 : half a day
# twikoo 配置信息
# twikoo settings
twikoo: # https://twikoo.js.org/
envId: # url: https://twikoo.sondy.top/
region: # 环境地域,默认为 ap-shanghai,腾讯云环境填 ap-shanghai 或 ap-guangzhou;Vercel 环境不填
style: true # Use custom styles when turned on / 开启后使用自定义样式
accessToken: # AccessToken
option: # twikoo option
# waline 配置信息
# waline settings
waline: # https://waline.js.org/
envId: # url: https://waline.wzsco.top
pageview: false # 是否开启页面访问量统计 / Whether to enable page access statistics
option: # waline配置项 / waline configuration item
# valine 配置信息
# valine settings
valine:
appId: "PNqo1I6yvTxds1OayS6tsASh-MdYXbMMI" # leancloud application app id
appKey: "t19Axnp0t5DJBjz7IL1cnnB4" # leancloud application app key
serverURLs: https://ll.efu.me # This configuration is suitable for domestic custom domain name users, overseas version will be automatically detected (no need to manually fill in)
avatar: monsterid # https://valine.js.org/avatar.html
visitor: true
style: true # Use custom styles when turned on / 开启后使用自定义样式
option: # options list
placeholder: "请友善发言"
recordIP: true
enableQQ: true
# artalk 配置信息
# artalk settings
artalk:
server: # server url / 后端地址
site: # site name / 站点名
option: # options
# 中控台扩展 : 最新评论 + 标签 + 文章
console_plus: true
# 站点验证
# Site verification
# 仅需要填写验证代码即可,譬如:codeva-KReTIJu5us
# Only need to fill in the verification code, such as: codeva-KReTIJu5us
verify_site:
# - name: google-site-verification
# content: xxxxxx
# - name: baidu-site-verification
# content: xxxxxxx
# CSS 前缀
# CSS prefix
# 有些 CSS 并不是所有浏览器都支持,需要增加对应的前缀才会生效
# Some CSS is not supported by all browsers, and you need to add the corresponding prefix to take effect
# 开启 css_prefix 后,会自动为一些 CSS 增加前缀。(会增加 20%的体积)
# After opening css_prefix, some CSS will be automatically prefixed. (Will increase 20% of the volume)
css_prefix: false
# Font 字体
# Font
font:
font-size: 16px
code-font-size: 16px
font-family: "PingFang SC,Hiragino Sans GB,Microsoft YaHei"
code-font-family: "monospace, monospace"
# 插入代码到头部 </head> 之前 和 底部 </body> 之前
# Insert code before </head> and before </body>
# 插入额外代码 如:统计,广告等
# Insert additional code such as: statistics, advertising, etc.
extends:
head: # 在head中插入 / Insert in head
- <link rel="stylesheet" href="/css/custom.css">
# - <script src="https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js"></script>
body: # 在body中插入 / Insert in body
- <script src="/js/solitude.js"></script>
# PWA
# https://developer.mozilla.org/zh-CN/docs/Web/Progressive_web_apps
# docs: https://solitude.js.org/configuration/extra#pwa
pwa:
enable: true
manifest: /manifest.json # manifest.json 文件路径
theme_color: "#006a73" # 主题颜色
mask_icon: /img/pwa/favicon.ico # 遮罩图标
apple_touch_icon: /img/pwa/favicon.ico # 苹果触摸图标
bookmark_icon: /img/pwa/favicon.ico # 书签图标
favicon_32_32: /img/pwa/favicon_32.ico # 32x32图标
favicon_16_16: /img/pwa/favicon_16.ico # 16x16图标
# 谷歌广告 (Google Adsense)
google_adsense:
enable: true
auto_ads: false # 自动广告关闭后则为手动广告 / After auto ads are turned off, it is manual ads
enable_page_level_ads: true # 页面级广告 / Page-level ads
aside_card: true # 侧边栏卡片广告 / Sidebar card ads(开启后自行到需要添加的页面使用:ads)
post_card: true # 文章卡片广告 / Post card ads(首页文章列表)
post_content: true # 文章内容广告 / Post content ads(文章内容底部广告)
js: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js # 谷歌广告js / Google Adsense js
# client id
# 无论是否开启自动广告,都需要填写 client id
# Whether to enable auto ads or not, you need to fill in the client id
client: ca-pub-6338523842252061 # ca-pub-XXXXXXXXXXXXXX
# slot id
# 只有关闭自动广告时才需要填写 slot id,可以在谷歌广告后台 按广告单元中创建广告位后获取
# Only when auto ads are turned off, you need to fill in the slot id, which can be obtained after creating an ad space in the Google Adsense background according to the ad unit
slot: # 4236388782
# 自定义右键菜单 (Custom Right Menu)
right_menu:
enable: true
commentBarrage: true # 是否显示热评开关 / Whether to display the hot comment switch.
# 翻译功能(仅支持简繁)
# Translation function (Simplified and Traditional Chinese only)
translate:
enable: true
defaultEncoding: 2 # 1: 默认繁体 2: 默认简体
translateDelay: 0 # 首次加载翻译迟疑时间
# 自定义菜单项列表
# Customize the list of menu items.
custom_list:
- name: 随机短文
click: toRandomPost()
id: menu-randomPost
class:
icon: st-signal-tower-fill
- name: 全部分类
click: pjax.loadUrl('/categories/') # 外链用 window.open,pjax 无法请求跨域内容
id:
class:
icon: st-checkbox-multiple-blank-fill
- name: 全部标签
click: pjax.loadUrl('/tags/')
id:
class:
icon: st-price-tag-fill
- name: 赞助主题
click: window.open('https://afdian.net/a/efu0u0/', '_blank')
id:
class:
icon: st-afdian-line
# CDN
# Don't modify the following settings unless you know how they work
# 非必要请不要修改
CDN:
# The CDN provider of internal scripts (主题内 js 的 cdn 配置)
# option: local/jsdelivr/unpkg/cdnjs/custom
# Dev version can only choose. ( dev版本只能为 local )
internal: cdnjs
# The CDN provider of third party scripts (第三方 js 的 cdn 配置)
# option: jsdelivr/unpkg/cdnjs/custom
third_party: cdnjs
# Add version number to url, true or false
version: true
# Custom format
# For example: https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}
custom_format: //cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}
option:
solitude_css: //cdn2.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css
busuanzi_qj_js: //pv.lemonso.com/js
# algolia_search:
# instantsearch:
# pjax:
# twikoo:
# waline_js:
# waline_css:
# katex:
# katex_copytex:
# lazyload:
# aplayer_css:
# aplayer_js:
# meting_js:
# pace_js:
# swiper_css:
# swiper_js:
# busuanzi_js:
# snackbar_js: