-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.fluid.yml
964 lines (852 loc) · 35 KB
/
_config.fluid.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
954
955
956
957
958
959
960
961
962
963
964
#---------------------------
# Hexo Theme Fluid
# Author: Fluid-dev
# Github: https://github.com/fluid-dev/hexo-theme-fluid
#
# 配置指南: https://hexo.fluid-dev.com/docs/guide/
# 你可以从指南中获得更详细的说明
#
# Guide: https://hexo.fluid-dev.com/docs/en/guide/
# You can get more detailed help from the guide
#---------------------------
#---------------------------
# 全局
# Global
#---------------------------
# 用于浏览器标签的图标
# Icon for browser tab
favicon: /img/favicon.png
# 用于苹果设备的图标
# Icon for Apple touch
apple_touch_icon: /img/favicon.png
# 浏览器标签页中的标题分隔符,效果: 文章名 - 站点名
# Title separator in browser tab, eg: article - site
title_join_string: " - "
# 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错)
# Force all links to be HTTPS (applicable to HTTP mixed error)
force_https: false
# 代码块的增强配置
# Enhancements to code blocks
code:
# 是否开启复制代码的按钮
# Enable copy code button
copy_btn: true
# 代码高亮
# Code highlight
highlight:
enable: true
# 代码块是否显示行号
# If true, the code block display line numbers
line_number: true
# 实现高亮的库,对应下面的设置
# Highlight library
# Options: highlightjs | prismjs
lib: "highlightjs"
highlightjs:
# 在链接中挑选 style 填入
# Select a style in the link
# See: https://highlightjs.org/static/demo/
style: "Tomorrow Night"
# 是否根据 style 改变代码背景色(如果 style 是深色背景别忘了开启此项)
# If true, the code background will change color based on the style (If style has a dark background, don't forget to true)
bg_color: true
prismjs:
# 在下方链接页面右侧的圆形按钮挑选 style 填入,也可以直接填入 css 链接
# Select the style button on the right side of the link page, you can also set the CSS link
# See: https://prismjs.com/
style: "default"
# 设为 true 高亮将本地静态生成(并只支持部分 prismjs 插件),设为 false 高亮将在浏览器通过 js 生成
# If true, it will be generated locally (but some prismjs plugins are not supported). If false, it will be generated via JS in the browser
preprocess: true
# 一些好玩的功能
# Some fun features
fun_features:
# 为 subtitle 添加打字机效果
# Typing animation for subtitle
typing:
enable: true
# 打印速度,数字越大越慢
# Typing speed, the larger the number, the slower
typeSpeed: 70
# 游标字符
# Cursor character
cursorChar: "✦"
# 是否循环播放效果
# If true, loop animation
loop: false
# 为文章内容中的标题添加锚图标
# Add an anchor icon to the title on the post page
anchorjs:
enable: true
element: h1,h2,h3,h4,h5,h6
placement: right
# Options: hover | always | touch
visible: hover
# Option:§ | # | ❡
icon: ""
# 加载进度条
# Progress bar when loading
progressbar:
enable: true
height_px: 3
color: "#29d"
# See: https://github.com/rstacruz/nprogress
options: { showSpinner: false, trickleSpeed: 200 }
# 主题暗色模式,开启后菜单中会出现切换按钮,用户浏览器会存储切换选项,并且会遵循 prefers-color-scheme 自动切换
# Theme dark mode. If enable, a switch button will appear on the menu, each of the visitor's browser will store his switch option
dark_mode:
enable: true
# 默认的选项(当用户手动切换后则不再按照默认模式),选择 `auto` 会优先遵循 prefers-color-scheme,其次按用户本地时间 18 点到次日 6 点之间进入暗色模式
# Default option (when the visitor switches manually, the default mode is no longer followed), choosing `auto` will give priority to prefers-color-scheme, and then enter the dark mode from 18:00 to 6:00 in the visitor’s local time
# Options: auto | light | dark
default: auto
color:
# body 背景色
# Color of body background
body_bg_color: "#eee"
# 暗色模式下的 body 背景色,下同
# Color in dark mode, the same below
body_bg_color_dark: "#181c27"
# 顶部菜单背景色
# Color of navigation bar background
navbar_bg_color: "#2f4154"
navbar_bg_color_dark: "#1f3144"
# 顶部菜单字体色
# Color of navigation bar text
navbar_text_color: "#fff"
navbar_text_color_dark: "#d0d0d0"
# 全局字体色
# Color of global text
text_color: "#3c4858"
text_color_dark: "#c4c6c9"
# 全局次级字体色(摘要、简介等位置)
# Color of global secondary text (excerpt, introduction, etc.)
sec_text_color: "#718096"
sec_text_color_dark: "#a7a9ad"
# 文章正文字体色
# Color of post text
post_text_color: "#2c3e50"
post_text_color_dark: "#c4c6c9"
# 文章正文字体色(h1 h2 h3...)
# Color of Article heading (h1 h2 h3...)
post_heading_color: "#1a202c"
post_heading_color_dark: "#c4c6c9"
# 文章超链接字体色
# Color of post link
post_link_color: "#0366d6"
post_link_color_dark: "#1589e9"
# 超链接悬浮时字体色
# Color of link when hovering
link_hover_color: "#30a9de"
link_hover_color_dark: "#30a9de"
# 超链接悬浮背景色
# Color of link background when hovering
link_hover_bg_color: "#f8f9fa"
link_hover_bg_color_dark: "#364151"
# 主面板背景色
# Color of main board
board_color: "#fff"
board_color_dark: "#252d38"
# 主题字体配置
# Font
font: # 主题字体配置
font_size: 18px # 全局字号
font_family: 微软雅黑 # 全局字体
code_font_size: 85% # 代码的字号
# 指定自定义 .js 文件路径,支持列表;路径是相对 source 目录,如 /js/custom.js 对应存放目录 source/js/custom.js
# Specify the path of your custom js file, support list. The path is relative to the source directory, such as `/js/custom.js` corresponding to the directory `source/js/custom.js`
custom_js: [
/js/custom.js,
/js/test.js,
] # 指定自定义 js 文件路径,路径是相对 source 目录,如 /js/custom.js,支持列表
# 指定自定义 .css 文件路径,用法和 custom_js 相同
# The usage is the same as custom_js
custom_css: [/styles/style.css,] # 指定自定义 css 文件路径,路径是相对 source 目录,如 /css/custom.css,支持列表
# 自定义底部 HTML 内容(位于 footer 上方),注意不要和 `post: custom` 配置冲突
# Customize the HTML content at the bottom (located above the footer), be careful not to conflict with `post: custom`
custom_html: '' # 自定义底部 HTML 内容(位于 footer 上方),也可用于外部引入 js css 这些操作,注意不要和 post.custom 配置冲突
web_analytics: # 网页访问统计
enable: true
baidu: e57601b965796b6bd88329a0ca1e8b5e # 百度统计的Key,参见 https://tongji.baidu.com/sc-web/10000033910/home/site/getjs?siteId=13751376 代码获取中 hm.js? 后边的字符串
google: 147234769 # Google统计的Tracking ID,参见 https://analytics.google.com/analytics/web/
# Google gtag.js 的媒体资源 ID
# Google gtag.js GA_MEASUREMENT_ID
# See: https://developers.google.com/analytics/devguides/collection/gtagjs/
gtag:
tencent:
sid:
cid:
# 51.la 站点统计 ID
# 51.la analytics
# See: https://www.51.la/user/site/index
woyaola: # 51.la 站点统计 ID,参见
cnzz: # 友盟/cnzz站点统计web_id,参见 https://web.umeng.com/main.php?c=site&a=show
leancloud: # LeanCloud 计数统计,可用于 PV UV 展示,如果 web_analytics.enable 没有开启,PV UV 展示只会查询,不会增加
app_id: diTi74ah5rpPDNa6bjS0VjqN-gzGzoHsz
app_key: nHbjOKICQKYQtsVVJjeHYl0O
server_url: https://diti74ah.lc-cn-n1-shared.com # REST API 服务器地址,国际版不填
# 对页面中的图片进行懒加载处理,可见范围外的图片不会加载
# Lazy loading of images on the page
lazyload:
enable: true
# 懒加载仅对文章页生效,开启后如果自定义页面需要使用,可以在 Front-matter 里指定 `lazyload: true`
# If true, only enable lazyload on the post page. For custom pages, you can set 'lazyload: true' in front-matter
onlypost: false
# 主题版本相关
# Theme version
version:
# 每次生成页面后,检测主题是否为最新版本
# If true, check whether Fluid is the latest version after hexo generate
check: false
daovoice: # 在线客服 Daovoice 参考:http://dashboard.daovoice.io
enable: false # 是否开启在线客服聊天
appid: "" # 应用ID设置
aplayer: # 音乐播放器,注意不能与 hexo-tag-aplayer 插件共用
enable: false
autoplay: false # 音频自动播放
loop: "all" # 音频循环播放, 可选值: 'all', 'one', 'none'
order: "random" # 播放顺序,可选值: 'list', 'random'
theme: "#b7daff" # 主题色
songs: # 歌曲列表,必须传入下列各参数,其中 url 与 cover 在本地需存于 source 目录,更多参数见文档:https://aplayer.js.org/#/zh-Hans/?id=%E5%8F%82%E6%95%B0
- {
name: "name",
artist: "artist",
url: "/songs/test.mp3",
cover: "/img/cover.jpg",
}
- {
name: "name",
artist: "artist",
url: "https://...url.mp3",
cover: "https://...cover.jpg",
}
#---------------------------
# 页头
# Header
#---------------------------
navbar:
blog_title: # 导航栏左侧的标题,为空则按 hexo config.title 显示
# 导航栏毛玻璃特效,实验性功能,可能会造成页面滚动掉帧和抖动,部分浏览器不支持会自动不生效
# Navigation bar frosted glass special animation. It is an experimental feature
ground_glass:
enable: false
# 模糊像素,只能为数字,数字越大模糊度越高
# Number of blurred pixel. the larger the number, the higher the blur
px: 3
# 不透明度,数字越大透明度越低,注意透明过度可能看不清菜单字体
# Ratio of opacity, 1.0 is completely opaque
# available: 0 - 1.0
alpha: 0.7
menu: # 可自行增减,key 用来关联 languages/*.yml,如不存在关联则显示 key 本身的值;icon 是 css class,可以省略;增加 name 可以强制显示指定名称
- {
key: "首页",
link: "http://www.aigisss.com",
icon: "iconfont icon-google-fill",
}
- { key: "博客", link: "/", icon: "iconfont icon-home-fill" }
- {
key: '文章',
icon: 'iconfont icon-books',
link: '#',
submenu: [
{ key: "archive", link: "/archives/", icon: "iconfont icon-archive-fill" },
{
key: "category",
link: "/categories/",
icon: "iconfont icon-category-fill",
},
{ key: "tag", link: "/tags/", icon: "iconfont icon-tags-fill" }
]
}
- { key: "相册", link: "/photos/", icon: "iconfont icon-image" }
- { key: "说说", link: "/talks/", icon: "iconfont icon-kakao-talk-fill" }
- { key: "about", link: "/about/", icon: "iconfont icon-user-fill" }
- { key: "links", link: "/links/", icon: "iconfont icon-link-fill" }
# - {
# key: '文档',
# icon: 'iconfont icon-books',
# link: '#',
# submenu: [
# { key: '配置指南', link: 'https://hexo.fluid-dev.com/docs/guide/' },
# { key: '操作示例', link: 'https://hexo.fluid-dev.com/docs/example/' },
# { key: '图标用法', link: 'https://hexo.fluid-dev.com/docs/icon/' }
# ]
# }
search: # 搜索栏
enable: true
path: /local-search.xml # 文件引用地址,默认是下方生成位置,也可以将生成后的 local-search.xml 上传到其它位置引用,如:https://www.example.com/local-search.xml
generate_path: /local-search.xml # 文件生成位置,必须为相对位置
# 搜索的范围
# Search field
# Options: post | page | all
field: post
# 搜索是否扫描正文
# If true, search will scan the post content
content: true
# 首屏图片的相关配置
# Config of the big image on the first screen
banner:
# 视差滚动,图片与板块会随着屏幕滚动产生视差效果
# Scrolling parallax
parallax: true
# 图片最小的宽高比,以免图片两边被过度裁剪,适用于移动端竖屏时,如需关闭设为 0
# Minimum ratio of width to height, applicable to the vertical screen of mobile device, if you need to close it, set it to 0
width_height_ratio: 1.0
scroll_down_arrow: # 向下滚动的箭头
enable: true
banner_height_limit: 90 # 头图高度不小于指定比例,才显示箭头
scroll_after_turning_page: true # 翻页后自动滚动
# 向顶部滚动的箭头
# Scroll top arrow
scroll_top_arrow:
enable: true
#---------------------------
# 页脚
# Footer
#---------------------------
footer:
# 页脚第一行文字的 HTML,建议保留 Fluid 的链接,用于向更多人推广本主题
# HTML of the first line of the footer, it is recommended to keep the Fluid link to promote this theme to more people
content: '
<a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a>
<i class="iconfont icon-love"></i>
<a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a>
'
statistics: # 统计网站 PV、UV,使用的是不蒜子,显示在页脚 *不蒜子近期连接不稳定,谨慎开启
enable: true
source: "leancloud" # 统计数据来源,可选:leancloud | busuanzi 注意不蒜子会间歇抽风
pv_format: "总访问量 {} 次" # 显示的文本,{}是数字的占位符(必须包含),下同
uv_format: "总访客数 {} 人"
beian: # The footer of China's website policy, other areas keep disable
enable: true
icp_text: 赣ICP备18013338-1号 # ICP证号
police_text: # 公安备案号,不填则只显示ICP
police_code: 12345678 # 公安备案的编号,用于URL跳转查询
police_icon: /img/police_beian.png # 公安备案的图片. 为空时不显示备案图片
#---------------------------
# 首页
# Index Page
#---------------------------
index:
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/4.jpg # 首页 Banner 头图,以下相同
banner_img_height: 100 # 头图高度,屏幕百分比,available: 0 - 100
banner_mask_alpha: 0.3 # 头图黑色蒙版的透明度,available: 0 - 1.0, 0 是完全透明(无蒙版),1 是完全不透明
slogan: # 首页副标题的独立设置
enable: true # 为 false 则不显示任何内容
text: "爱即是诗的博客" # 为空则按 hexo config.subtitle 显示
# 通过 API 接口作为首页副标题的内容,必须返回的是 JSON 格式,如果请求失败则按 text 字段显示,该功能必须先开启 typing 打字机功能
# Subtitle of the homepage through the API, must be returned a JSON. If the request fails, it will be displayed in `text` value. This feature must first enable the typing animation
api:
enable: false
# 请求地址
# Request url
url: ""
# 请求方法
# Request method
# Available: GET | POST | PUT
method: "GET"
# 请求头
# Request headers
headers: {}
# 从请求结果获取字符串的取值字段,最终必须是一个字符串,例如返回结果为 {"data": {"author": "fluid", "content": "An elegant theme"}}, 则取值字段为 ['data', 'content'];如果返回是列表则自动选择第一项
# The value field of the string obtained from the response. For example, the response content is {"data": {"author": "fluid", "content": "An elegant theme"}}, the expected `keys: ['data','content']`; if the return is a list, the first item is automatically selected
keys: []
# 自动截取文章摘要
# Auto extract post
auto_excerpt:
enable: true
# 打开文章的标签方式
# The browser tag to open the post
# Available: _blank | _self
post_url_target: _self
# 是否显示文章信息(时间、分类、标签)
# Meta information of post
post_meta:
date: true
category: true
tag: true
# 文章通过 sticky 排序后,在首页文章标题前显示图标
# If the posts are sorted by `sticky`, an icon is displayed in front of the post title
post_sticky:
enable: true
icon: "iconfont icon-top"
# 通过 hexo new page 命令创建的页面
# Custom Page
page:
banner_img: https://rmt.dogedoge.com/fetch/fluid/storage/post.png?w=1920&fmt=webp
banner_img_height: 60 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
#---------------------------
# 文章页
# Post Page
#---------------------------
post: # 部分配置同时控制自定义页面,注意备注
banner_img: https://rmt.dogedoge.com/fetch/fluid/storage/bg/dojm2h.png?w=1920&q=100&fmt=webp
banner_img_height: 70
banner_mask_alpha: 0.3
# 文章在首页的默认封面图,当没有指定 index_img 时会使用该图片,若两者都为空则不显示任何图片
# Path of the default post cover when `index_img` is not set. If both are empty, no image will be displayed
default_index_img:
meta: # 文章标题下方的信息
# 作者,优先根据 front-matter 里 author 字段,其次是 hexo 配置中 author 值
# Author, based on `author` field in front-matter, if not set, based on `author` value in hexo config
author:
enable: false
date: # 文章日期
enable: true
format: "LL a" # 格式参照 ISO-8601 日期格式化
wordcount: # 字数统计
enable: true
format: "{} 字" # 显示的文本,{}是数字的占位符(必须包含),下同
min2read: # 阅读时间
enable: true
format: "{} 分钟"
words: 100 # 每分钟阅读多少字,如果是技术文章,建议降低
views: # 阅读次数,统计基于不蒜子 *不蒜子近期连接不稳定,谨慎开启
enable: true
source: "leancloud" # 统计数据来源,可选:leancloud | busuanzi 注意不蒜子会间歇抽风
format: "{} 次"
updated:
enable: true
content: 本文最后更新于:
relative: true # 是否使用相对时间表示,比如:"3 天前"
# 文章右侧目录
# Table of contents
toc:
enable: true
headingSelector: "h1,h2,h3,h4,h5,h6"
collapseDepth: 0
# 版权声明
# Copyright
copyright:
enable: true
content: '本博客所有文章除特别声明外,均采用 <a href="https://creativecommons.org/licenses/by-sa/4.0/deed.zh" rel="nofollow noopener">CC BY-SA 4.0 协议</a> ,转载请注明出处!'
prev_next: # 文章底部上一篇下一篇功能
enable: true
custom: # 文章底部自定义内容
enable: false
content: '<img src="https://octodex.github.com/images/jetpacktocat.png" class="rounded mx-auto d-block mt-5" style="width:150px; height:150px;">' # 自定义区域,支持 HTML,可自行插入赞赏码、公众号二维码等内容
image_zoom: # 文章图片可点击放大
enable: true # 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `image_zoom: true`,并且图片使用该格式插入:<img src="..." zoom />
footnote: # 脚注语法,会在文章底部生成脚注,如果 Markdown 渲染器本身支持,则建议关闭,否则可能会冲突
enable: true
header: "" # 脚注的节标题,也可以在 front-matter 中通过 `footnote: <h2>Reference</h2>` 这种形式修改单页的节标题
# 数学公式,开启之前需要更换 Markdown 渲染器,否则复杂公式会有兼容问题,具体请见:https://hexo.fluid-dev.com/docs/guide/##latex-数学公式
# Mathematical formula. If enable, you need to change the Markdown renderer, see: https://hexo.fluid-dev.com/docs/en/guide/#math
math:
# 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `math: true`
# If you want to use math on the custom page, you need to set `math: true` in Front-matter
enable: true
# 开启后,只有在文章 Front-matter 里指定 `math: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
# If true, only set `math: true` in Front-matter will enable math, to load faster when the page does not contain math
specific: true
# Options: mathjax | katex
engine: mathjax
# 流程图,基于 mermaid-js
# Flow chart, based on mermaid-js
mermaid:
# 开启后文章默认可用,自定义页面如需使用,需在 Front-matter 中指定 `mermaid: true`
# If you want to use mermaid on the custom page, you need to set `mermaid: true` in Front-matter
enable: true
# 开启后,只有在文章 Front-matter 里指定 `mermaid: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
# If true, only set `mermaid: true` in Front-matter will enable mermaid, to load faster when the page does not contain mermaid
specific: true
# See: http://mermaid-js.github.io/mermaid/
options: { theme: 'default' }
comments: # 评论
enable: false # 开启评论
type: valine # 指定使用的评论模块 available: disqus | valine | gitalk | utterances | changyan | livere 推荐 utterances
#---------------------------
# 评论插件
# Comment plugins
#
# 开启评论需要先在上方 `post: comments: enable: true`
# Enable comments need to be above `post: comments: enable: true`
#---------------------------
# Utterances
# 基于 GitHub Issues
# Based on GitHub Issues
# See: https://utteranc.es
utterances:
repo:
issue_term: pathname
label: utterances
theme: github-light
theme_dark: github-dark
crossorigin: anonymous
# Disqus
# 基于第三方的服务,国内用户直接使用容易被墙,建议配合 Disqusjs
# Third-party based services, it is a very popular
# See: https://disqus.com
disqus:
shortname:
# 以下为 Disqusjs 支持, 国内用户如果想使用 Disqus 建议配合使用
# The following are Disqusjs configurations, please ignore if DisqusJS is not required
# See: https://github.com/SukkaW/DisqusJS
disqusjs: false
apikey:
# Gitalk
# 基于 GitHub Issues
# Based on GitHub Issues
# See: https://github.com/gitalk/gitalk#options
gitalk:
clientID:
clientSecret:
repo:
owner:
admin: ['name']
language: zh-CN
labels: ['Gitalk']
perPage: 10
pagerDirection: last
distractionFreeMode: false
createIssueManually: true
# Valine
# 完整文档 https://valine.js.org/configuration.html
# 注意:下列配置项中的 true/false 不要用引号括起来
valine:
enable: true
appid: diTi74ah5rpPDNa6bjS0VjqN-gzGzoHsz # your leancloud application appid
appkey: nHbjOKICQKYQtsVVJjeHYl0O # your leancloud application appkey
placeholder: 留下您的足迹... # 评论框占位提示符
path: window.location.pathname # 当前文章页路径,用于区分不同的文章页,以保证正确读取该文章页下的评论列表
avatar: robohash # Gravatar 头像展示方式
meta: ["nick", "mail", "link"] # 评论者相关属性
pageSize: 10 # 评论列表分页,每页条数
lang: zh-CN # zh-CN | zh-TW | en | ja
highlight: true # 代码高亮
recordIP: true # 是否记录评论者IP
serverURLs: # 该配置适用于国内自定义域名用户, 海外版本会自动检测(无需手动填写)
# 畅言
# http://changyan.kuaizhan.com/
changyan:
appid: ""
appkey: ""
# Livere 来必力
# You can get your uid from https://www.livere.com/my_Livere
livere:
uid: ""
# Remark42
# 需要自己运行后端服务
# Need to run the backend service yourself
# See: https://remark42.com
remark42:
host:
site_id:
max_shown_comments: 10
locale: zh
# twikoo
# 基于腾讯云开发
# Based on Tencent CloudBase
# See: https://twikoo.js.org
twikoo:
env_id:
#---------------------------
# 归档页
# Archive Page
#---------------------------
archive:
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/2.jpg
banner_img_height: 60 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: # 打字机内容
#---------------------------
# 分类归档页
# Categories Page
#---------------------------
category:
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/6.jpg
banner_img_height: 60 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: # 打字机内容
# 单个分类中折叠展示文章数的最大值,超过限制会显示 More
# The maximum number of posts in a single category. If the limit is exceeded, it will be displayed More
post_limit: 10
# 排序字段,前面带减号是倒序,不带减号是正序,可选项:name | length
# Sort field, with a minus sign is reverse order
# Options: name | length
order_by: "-length"
# 层级的折叠深度,0 是全部折叠,大于 0 后如果存在子分类则默认展开
# Collapse depth. If 0, all posts collapsed. If greater than 0, it will be expanded by default if there are subcategories
collapse_depth: 0
#---------------------------
# 标签归档页
# Tags Page
#---------------------------
tag:
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/4.jpg
banner_img_height: 80 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: # 打字机内容
tagcloud: # 标签云
min_font: 15
max_font: 30
unit: px
start_color: "#BBBBEE"
end_color: "#337ab7"
#---------------------------
# 关于页
# About Page
#---------------------------
about: # 以下仅为页面顶部的基本信息,更多内容请在 ./pages/about.md 中编辑,支持 markdown 和 HTML
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/5.jpg
banner_img_height: 60 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: # 打字机内容
avatar: /images/profile/avatar.jpg # 头像
name: AIGISSS
introduce: 个人网站 / 博客日志 / 技术文档 # 支持 HTML
icons: # 更多图标可从 https://github.com/fluid-dev/static/blob/master/hexo-theme-fluid/iconfont.png 查找,class 代表图标的 css class
- {
class: "iconfont icon-github-fill",
link: "https://github.com/cenergy",
tip: "GitHub",
}
- {
class: "iconfont icon-qq-fill",
link: "tencent://AddContact/?fromId=45&fromSubId=1&subcmd=all&uin=673598118",
tip: "QQ",
}
- {
class: "iconfont icon-mail",
link: "mailto:[email protected]",
tip: "email",
}
- {
class: "iconfont icon-google-fill",
link: "https://www.aigisss.com",
tip: "个人网站",
}
#---------------------------
# 404页
# 404 Page
#---------------------------
page404:
banner_img: https://rmt.dogedoge.com/fetch/fluid/storage/bg/g8xjqe.png?w=1920&fmt=webp
banner_img_height: 85 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: "Page not found" # 打字机内容
#---------------------------
# 友链页
# Links Page
#---------------------------
links:
banner_img: https://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/9.jpg
banner_img_height: 60 # available: 0 - 100
banner_mask_alpha: 0.3 # available: 0 - 1.0
subtitle: # 打字机内容
items: # intro 与 image 可省略
- {
title: "最美的不是下雨天",
intro: "龙哥的网站",
link: "http://www.qiulongwen.xyz/",
image: "https://www.aigisss.com/blog/img/avatar.png",
}
- {
title: "Fluid Blog",
intro: "主题博客",
link: "https://hexo.fluid-dev.com/",
image: "https://hexo.fluid-dev.com/img/favicon.png"
}
- {
title: "Fluid Docs",
intro: "主题使用指南",
link: "https://hexo.fluid-dev.com/docs/",
image: "https://hexo.fluid-dev.com/img/favicon.png"
}
- {
title: "Fluid Repo",
intro: "主题 GitHub 仓库",
link: "https://github.com/fluid-dev/hexo-theme-fluid",
image: "https://hexo.fluid-dev.com/img/favicon.png"
}
- {
title: "吃白饭的休伯利安号",
intro: "一只努力的考研狗",
link: "https://eatrice.top/",
image: "https://eatrice.top/img/favcion.png"
}
- {
title: "GIS-HAPPY",
intro: "GIS寻乐 即时行乐",
link: "https://www.gishappy.com",
image: "https://www.gishappy.comhttps://cdn.jsdelivr.net/gh/Cenergy/images/blog/images/home/favicon.ico"
}
- {
title: "Re Life",
intro: "🌺花有重开日,人无再少年🏃",
link: "http://www.xiangshu233.cn",
image: "https://cdn.jsdelivr.net/gh/xiangshu233/[email protected]/assets/images/avatar.jpg"
}
- {
title: "醉里挑灯赏猫",
intro: "班班的碎碎念",
link: "https://dlzhang.com",
image: "https://sdn.geekzu.org/avatar/cc763511474fe24ffcc80257fb7cb970?size=64"
}
- {
title: "Spoience",
intro: "记录我的碎碎念念",
link: "https://spoience.com/",
image: "https://cdn.jsdelivr.net/gh/Spoience/pic/img/avatar.jpg"
}
- {
title: "呆逼の博客",
intro: "一个初中生的博客",
link: "https://keepdai.cn/",
image: "https://cdn.jsdelivr.net/gh/Daibi-mua/[email protected]/logo.png"
}
- {
title: "梦繁星",
intro: "不过是大梦一场空!",
link: "https://moeor.com/",
image: "https://q1.qlogo.cn/g?b=qq&nk=2502393029&s=640"
}
- {
title: "树寒的博客",
intro: "吾将上下而求索!",
link: "https://shuxhan.com",
image: "https://shuxhan-imgbed.oss-cn-hangzhou.aliyuncs.com/img/20210108164434.jpg"
}
- {
title: "modao",
intro: "",
link: "https://modao233.gitee.io/",
image: "https://modao233.gitee.io/img/friend.png"
}
- {
title: "小世炎",
intro: "交流编程经验",
link: "https://blog.xiaoshiyan.top",
image: "https://blog.xiaoshiyan.top/wp-content/uploads/2020/12/header.jpg"
}
- {
title: "YFun's Blog",
intro: "探寻一切有趣的事物!",
link: "https://blog.yfun.top",
image: "https://cdn.jsdelivr.net/gh/MyBlog-GitHub/image-upload@main/uPic/1GsaSI.png"
}
- {
title: "Dezheng Guo",
intro: "Physics Student",
link: "https://gdz5366.github.io/",
image: "https://gdz5366.github.io/asset/images/avatar.png"
}
- {
title: "moliam",
intro: "一个嵌入式菜鸡",
link: "https://moliam.space/",
image: "https://backgroundimg.oss-cn-shenzhen.aliyuncs.com/9_ball3_4k.jpg"
}
- {
title: "Benjamin",
intro: "Developer",
link: "https://wnllb.cn/",
image: "https://cdn.jsdelivr.net/gh/benjamin603/homepages@master/img/avatar01.png"
}
- {
title: "leader755 Blogs",
intro: "分享web前端相关的技术文章,会记录日常生活中的琐事和大家一起分享。",
link: "https://www.leader755.com/",
image: "https://gitee.com/leader755/imagehost/raw/master/blog/wx_avatar.png"
}
- {
title: "小背影",
intro: "过于个性-没有签名",
link: "http://xbying.com/",
image: "https://cdn.jsdelivr.net/gh/xbying/xbying.github.io@master/images/about-HJ.66yi7walf600.jpg"
}
- {
title: "灯火不休时",
intro: "所爱隔山海,山海皆可平;所念隔星河,星河不可及。",
link: "https://dhbxs.club",
image: "https://cdn.jsdelivr.net/gh/zhao-v/blog-img/img/20201020000120.jpg"
}
- {
title: "GOOPHER's Blog",
intro: ' ',
link: 'https://goopher97-github-io.vercel.app',
image: 'https://gitee.com/goopher998/tuchuang/raw/master/img/IMG_2199.JPG'
}
- {
title: "AmorSpem",
intro: '一切皆有可能~',
link: 'https://3ddd.site/',
image: 'https://3ddd.site/img/me.webp'
}
- {
title: "猫のレインボー島",
intro: "分享|创新|博爱",
link: "https://annko.cn",
image: "https://cdn.jsdelivr.net/gh/annkoxx/img_annko@main/20210121/annko.png"
}
- {
title: "爱技术Blog",
intro: "一只游走在学校的混子",
link: "http://www.aijishu.pro/",
image: "https://tu.shijieheping.cn/img/121"
}
- {
title: "小茶猫-有缘即相见",
intro: "随笔记录 知识科普",
link: "https://www.xiaochamao.com/",
image: "https://www.xiaochamao.com/tx.png"
}
- {
title: "XingYu 'blog",
intro: "记录与回顾。",
link: "https://www.itxy.tech",
image: "http://tc.itxy.tech/2021/01/14/tx.png"
}
- {
title: 'pxxyyz',
intro: '秃头怪的自娱自乐',
link: 'https://pxxyyz.com',
image: 'https://cdn.jsdelivr.net/gh/pxxyyz/blog-file/photo/logo.png'
}
- {
title: '青春永不落幕',
intro: '一位网页设计和收集Windows平台软件的爱好者。',
link: 'https://qcyblm.gitee.io/',
image: 'https://qcyblm.gitee.io/favicon.ico'
}
#---------------------------
# 以下是配置 JS CSS 静态资源的 URL 前缀,可以自定义成 CDN 地址,
# 默认的 staticfile CDN 可能在部分地区无法访问,如果需要修改,最好使用与默认配置相同的版本,以避免潜在的问题,
# 在站点上启用 https 时,请使用 CDN 地址的 https 协议,
# ** 如果你不知道如何设置,请不要做任何改动 **
#
# Here is the url prefix to configure JS and CSS static assets. Set CDN addresses you want to customize.
# Be aware that you would better use the same version as default ones to avoid potential problems.
# Use the https protocol of CDN url when you enable https on your site.
# DO NOT EDIT THE FOLLOWING SETTINGS UNLESS YOU KNOW WHAT YOU ARE DOING
#---------------------------
static_prefix:
# 内部静态
# Internal static
internal_js: /js
internal_css: /css
internal_img: /img
# 图标库,包含了大量社交类图标,主题依赖的不包含在内,因此可自行修改,详见 https://hexo.fluid-dev.com/docs/icon/
# Icon library, which includes many social icons, does not include those theme dependent, so your can modify link by yourself. See: https://hexo.fluid-dev.com/docs/en/icon/
iconfont: //at.alicdn.com/t/font_1736178_kmeydafke9r.css
anchor: https://cdn.staticfile.org/anchor-js/4.3.0/
github_markdown: https://cdn.staticfile.org/github-markdown-css/4.0.0/
jquery: https://cdn.staticfile.org/jquery/3.5.1/
bootstrap: https://cdn.staticfile.org/twitter-bootstrap/4.5.3/
highlightjs: https://cdn.staticfile.org/highlight.js/10.1.2/
prismjs: https://cdn.staticfile.org/prism/1.22.0/
tocbot: https://cdn.staticfile.org/tocbot/4.12.0/
typed: https://cdn.staticfile.org/typed.js/2.0.11/
fancybox: https://cdn.staticfile.org/fancybox/3.5.7/
nprogress: https://cdn.staticfile.org/nprogress/0.2.0/
mathjax: https://cdn.staticfile.org/mathjax/3.1.2/es5/
katex: https://cdn.staticfile.org/KaTeX/0.12.0/
busuanzi: https://busuanzi.ibruce.info/busuanzi/2.3/
clipboard: https://cdn.staticfile.org/clipboard.js/2.0.6/
mermaid: https://cdn.staticfile.org/mermaid/8.8.2/
valine: https://cdn.staticfile.org/valine/1.4.14/
gitalk: https://cdn.staticfile.org/gitalk/1.7.0/
disqusjs: https://cdn.jsdelivr.net/npm/[email protected]/dist/
twikoo: https://cdn.jsdelivr.net/npm/[email protected]/dist/
hint: /lib/hint/