forked from OrangeCatSleepless/Hexo-Decap-CMS
-
Notifications
You must be signed in to change notification settings - Fork 17
/
_config.cards.yml
542 lines (424 loc) · 10.6 KB
/
_config.cards.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
# ---------------------------------------------------------------
# ⚠ 注意!
# ---------------------------------------------------------------
# Hexo 有两个配置文件,分别为位于站点根目录的「站点配置文件」和此处的「主题配置文件」
# 修改时注意对应配置文件,部分主题配置文件的内容可能需要复制到站点配置文件才能生效
# ---------------------------------------------------------------
# <head> 标签配置
# ---------------------------------------------------------------
head:
# 网站图标
favicon:
ico:
small:
medium:
apple_touch_icon:
safari_pinned_tab:
# 社交分享链接
opengraph:
enable: true
type:
twitter_card: summary_large_image
twitter_id:
twitter_site:
image: page.thumbnail
fb_admins:
fb_app_id:
# 自定义 head
custom_head:
# - ''
# - ''
# ---------------------------------------------------------------
# 导航栏/封面配置
# ---------------------------------------------------------------
# 顶部导航栏设置
navbar:
# 左侧名称显示
sitename: Demo
# 右侧站内导航链接
menu:
- name: 首页
url: /
- name: 标签
url: /tags/
- name: 归档
url: /archives/
- name: 友链
url: /friends/
- name: Page
url: /page/
# 导航栏永远显示在屏幕顶端
# 仅当屏幕宽度不小于 1080 px 时生效
sticky: false
# 封面 cover 设置
cover:
# 显示在最上方 cover 处的站点名称
sitename: Demo
# 若 avatar 配置不为空,则优先使用 avatar 覆盖 sitename
avatar:
# sitename/avatar 下方的一句话介绍
description: Hi, nice to meet you!
# ---------------------------------------------------------------
# 样式自定义
# ---------------------------------------------------------------
style:
# 颜色配置
color:
main_color: '#6200ee'
main_color_dark: '#bb86fc'
# 弧度设置
radius:
main_radius: 5px
# 间距设置
space:
main_space: 3.5rem
sm_space: 1.5rem # 当屏幕宽度小于 650px 时候启用
# 默认代码高亮
highlight:
# 默认代码高亮主题
default:
# 暗色代码高亮主题
darkmode:
# highlight.js 代码高亮
hljs:
# 默认代码高亮主题
default:
# 暗色代码高亮主题
darkmode:
# prismjs 代码高亮
prismjs:
# 默认代码高亮主题
default:
# 暗色代码高亮主题
darkmode:
# ---------------------------------------------------------------
# meta 库
# ---------------------------------------------------------------
meta:
# 默认文章标题
title: 'no title'
# 默认文章作者(可在front-matter中覆盖)
author:
name: ChrAlpha
url: https://chralpha.com
# 文章创建日期
date:
title: ''
format: 'YYYY-MM-DD' # 日期格式 http://momentjs.com/docs/
# 文章更新日期
updated:
title: ''
format: 'YYYY-MM-DD' # 日期格式 http://momentjs.com/docs/
# 文章缩略图
thumbnail:
enable: false
default: # 默认缩略图,当页面 `thumbnail` 字段为空时 fallback 至此参数
# 文章过时提醒
expire:
enable: false
duration: 120 # 超过此天数则显示过期提醒
# 文章自动摘要
auto_excerpt:
enable: false
length: 150
# 文章目录
toc:
enable: false
list_number: false
# 文章版权声明
copyright:
enable: false
# 在作者声明和永久链接之后,可以多行,支持 markdown
custom_text:
# - ''
# - ''
# ---------------------------------------------------------------
# 评论系统
# ---------------------------------------------------------------
comments:
use: # disqus | disqusjs | valine | minivaline | gitalk | gitment | levere | changyan | wildfire
# Disqus
disqus:
shortname:
# DisqusJS
disqusjs:
shortname:
siteName:
api:
apikey:
admin: ''
nesting: 2
# Valine
valine:
appId:
appKey:
placeholder:
path:
avatar:
meta: [nick, mail, link]
pageSize:
lang:
visitor:
highlight:
avatarForce:
recordIP:
serverURLs:
enableQQ:
requiredFields: [nick, mail]
emojiCDN:
emojiMaps:
# MiniValine
minivaline:
appId:
appKey:
mode:
placeholder:
pathname:
adminEmailMd5:
master:
friends:
tagMeta:
math:
md:
lang:
emoticonUrl:
NoRecordIP:
maxNest:
pageSize:
enableQQ:
visitor:
serverURLs:
# Gitalk
gitalk:
repo:
owner:
clientID:
clientSecret:
# Gitment
gitment:
repo:
owner:
client_id:
client_secret:
# Artalk
artalk:
serverUrl:
placeholder:
noComment:
defaultAvatar:
pageKey:
gravatar:
cdn:
readMore:
pageSize:
autoLoad:
emoticons:
# Livere 来比力
livere:
livere_uid:
# 畅言
changyan:
appid:
conf:
thread_key_type: path # id | path,单独定义时候用 “id”
# Wildfire
wildfire:
database_provider: firebase # firebase | wilddog
wilddog_site_id:
firebase_api_key:
firebase_auth_domain:
firebase_database_url:
firebase_project_id:
firebase_storage_bucket:
firebase_messaging_sender_id:
theme: light # light | dark
locale: en
# Twikoo
twikoo:
envId: # 你的 CloudBase 环境 ID
# ---------------------------------------------------------------
# 统计服务
# ---------------------------------------------------------------
analytics:
google_site_id:
gtags_site_id:
baidu_site_id:
cnzz_site_id:
cloudflare_site_id:
umami:
id:
url:
# ---------------------------------------------------------------
# 网站页脚
# ---------------------------------------------------------------
footer:
# 设置站点起始时间,用于底部 copyright 显示
# 例如:将此设为 `2018`,那么页脚就会显示 '© 2018 - 2020'(2020 为最后一次页面生成时间)
# 如果将此项留空,则单独显示 '© 2020'(2020 为最后一次页面生成时间)
# 如果你不想显示任何内容,请将此项设为 `false`
copyright_since:
# 网站计数
statistics:
# 选择 LeanCloud/busuanzi 为网站计数。如果你完全不想启用,将 `use` 项留空即可
use: # leancloud | busuanzi
# 如果选择使用 LeanCloud,则需完善下面的配置项
leancloud:
appId:
appKey:
serverURL: # REST API 服务器地址,LeanCloud 国际版不填
# 全站 UV(Unique Viewers)
site_uv:
enable: true
before_text: '' # 展示在数据前的内容,支持 HTML
after_text: Viewers # 展示在数据后的内容,支持 HTML
divider: ' |' # 分隔符,HTML 语法支持
# 全站 PV(Page Views)
site_pv:
enable: true
before_text: '' # 展示在数据前的内容,支持 HTML
after_text: Views # 展示在数据后的内容,支持 HTML
divider: '' # 分隔符,HTML 语法支持
# 页面 PV
page_pv:
enable: true
before_text: ''
after_text: Views
# 自定义页脚,支持 markdown
custom_text:
# - ''
# - ''
# ---------------------------------------------------------------
# 优化/功能 插件
# ---------------------------------------------------------------
# 图片懒加载插件
lazyload:
enable: false
loadingImage:
# 站内搜索插件
search:
enable: false
path: search.json
field: All # Page | Post | All
# note 标签插件
note: false
# fold 内容折叠插件
fold:
enable: true
summary: # 默认摘要
motion:
# 图片点击放大插件
fancybox:
enable: false
auto: false
# 返回顶部
back_to_top: false
# 深色模式
darkmode: false
# Mermaid Diagrams
mermaid:
enable: false
options:
# ---------------------------------------------------------------
# CDN for vendors
# ---------------------------------------------------------------
# Vendors
# 某一项留空则调用 默认/本地 文件
vendors:
# main style css
# https://cdn.jsdelivr.net/npm/[email protected]/dist/css/style/main.min.css
# Version: 1.2
# 如果你有自定义样式,请务必将此项修改为自己的 CDN 地址,或者单纯留空
style:
# darkmode
# https://cdn.jsdelivr.net/npm/[email protected]/dist/css/style/dark.min.css
# https://cdn.jsdelivr.net/npm/[email protected]/dist/js/darkmode.min.js
# Version 1.2
darkmode:
css:
js:
# code highlight css
# https://cdn.jsdelivr.net/npm/[email protected]/dist/css/highlight/
# Version: 1.2
highlight:
# highlight.js theme
# https://cdn.jsdelivr.net/npm/[email protected]/styles/
# Version: 10.1.2
hljs:
# prism.js theme
# https://cdn.jsdelivr.net/npm/[email protected]/themes/
# Version: 1.21.0
prism:
# tag-plugin note css
# https://github.com/ChrAlpha/hexo-theme-cards
# https://cdn.jsdelivr.net/npm/[email protected]/dist/css/style/note.min.css
# Version 1.2
note:
# Lazyload js
# https://github.com/verlok/lazyload
# Version: 17.1.2
lazyload:
# back_to_top button
# https://cdn.jsdelivr.net/npm/[email protected]/dist/js/b2t.min.js
# Version 1.2
back_to_top:
# local search plugin
# https://cdn.jsdelivr.net/npm/[email protected]/dist/js/local-search.min.js
# Version 1.2
local_search:
# Valine comments system
# https://github.com/xcss/Valine/
# Version: 1.4.14
valine:
# MiniValine
# https://github.com/MiniValine/MiniValine
# Version 2.7.5
minivaline:
# Artalk
# https://github.com/qwqcode/Artalk
# Version 1.0.6
artalk:
css:
js:
# Wildfire comments system
# https://github.com/cheng-kang/wildfire/
# Version: 0.3.9
wildfire:
# Twikoo
# https://github.com/imaegoo/twikoo
# Version 0.3.2
twikoo:
# MathJax
# https://www.mathjax.org/
# Version: 3
mathjax:
# KaTeX
# https://katex.org/
# Version 0.12.0
katex:
css:
js:
# Mermiad Disgrams
# https://mermaid-js.github.io/
# Version 8.10.2
mermaid:
# busuanzi counter js
# https://busuanzi.ibruce.info
busuanzi:
# Artitalk js
# https://github.com/ArtitalkJS/Artitalk
# Version: 3.1.2
artitalk:
# jQuery js
# https://github.com/jquery/jquery/
# Version: 3.4.1
jquery:
# fancybox css
# https://github.com/fancyapps/fancybox/
# Version: 3.5.7
fancybox:
css:
js:
# 自定义 script
custom_script:
# - ''
# - ''