-
-
Notifications
You must be signed in to change notification settings - Fork 126
/
_config.yml
1032 lines (940 loc) · 32 KB
/
_config.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
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# ---------------------------------------------------------------
# Theme Core Configuration Settings
# ---------------------------------------------------------------
# Remove unnecessary files after hexo generate.
shake_file: true
# ---------------------------------------------------------------
# SEO Settings
# ---------------------------------------------------------------
# If true, will add site-subtitle to index page.
# Remember to set up your site-subtitle in Hexo `_config.yml`.
index_subtitle: false
# Set a canonical link tag for your Hexo site.
# See: https://support.google.com/webmasters/answer/139066
# Remember to set up your URL in Hexo `_config.yml` (e.g. url: http://yoursite.com)
canonical: true
# Webmaster tools verification setting
# ---------------------------------------------------------------
# Google Webmaster tools verification setting
# See: https://www.google.com/webmasters/
google_site_verification:
# Bing Webmaster tools verification setting
# See: https://www.bing.com/webmaster/
bing_site_verification:
# Baidu Webmaster tools verification setting
# See: https://ziyuan.baidu.com/site/
baidu_site_verification:
# 360 Webmaster tools verification setting
# see http://zhanzhang.so.com/
qihu360_site_verification:
# Sougou Webmaster tools verification setting
# see http://zhanzhang.sogou.com/
sougou_site_verification:
# ---------------------------------------------------------------
# Menu config
# ---------------------------------------------------------------
# The menu in the website header.
# Value before `||` is the target link, value after `||` is the name of FontAwesome icon.
# Usage(With Icon): `Key: /link/ || fa(s|r|l|d|b) fa-iconname`
# Usage(No Icon) : `Key: /link/`
# Select your icon name, see: https://fontawesome.com/icons
menu:
home: / || fas fa-home
archives: /archives/ || fas fa-folder-open
# categories: /categories/ || fas fa-layer-group
# tags: /tags/ || fas fa-tags
# You can add a secondary menu like follow.
# xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx
# Secondary menu
submenu:
# Add item of secondary menu in here.
# xxx1:
# xxx1-1: /xxx1-1/ || fa(s|r|l|d|b) fa-xxx
# xxx1-2: /xxx1-2/ || fa(s|r|l|d|b) fa-xxx
menu_settings:
# Only show by icon.
icon_only: false
# Only show by text.
text_only: false
# ---------------------------------------------------------------
# Site config
# ---------------------------------------------------------------
favicon:
small: /images/icons/favicon-16x16.png
medium: /images/icons/favicon-32x32.png
# ! --------------------------------------------------
# ! If you don't know the following, please ignore it.
# ! --------------------------------------------------
# apple_touch_icon: /images/icons/apple-touch-icon.png
# safari_pinned_tab: /images/icons/stun-logo.svg
# msapplication: /images/icons/favicon-144x144.png
# Progressive Web Apps
# See: https://github.com/lavas-project/hexo-pwa/
pwa:
enable: false
manifest: /manifest.json
# (Please use '' to wrap the value)
theme_color: '#54bcff'
# Night mode
night_mode:
enable: true
# The button of switching to the night mode.
button:
# Color of button (Please use '' to wrap the value).
color: '#fafafa'
# Background color of button (Please use '' to wrap the value).
bg_color: '#8c8a8a'
# The icon that stand for day and night.
icon:
dark: 🌜
light: 🌞
# The layout for sidebar and content of site.
layout:
# The width of the content area in website.
content: 768px
# The width of the sidebar in website.
sidebar: 300px
# The width between the content and the sidebar.
content_sidebar_gap: 30px
# The padding property of the main tag.
# e.g. Usage:
# 20px
# 20px 30px
# 20px 20px 30px
# 20px 30px 40px 25px
main_padding:
# Take effect when screen width in: [768px, Infinity)
default: 20px
# Take effect when screen width in: [576px, 768px)
tablet: 15px
# Take effect when screen width in: [0px, 576px)
mobile: 10px
# The header of site.
header:
enable: true
show_on:
# Whether to show on the article page.
post: true
# If you set a percentage, it will be calculated based on the height of screen (Supports all CSS units)
height: 80%
# Background image of site header.
bg_image:
enable: false
# In theme directory (source/images): /images/avatar.png
# In site directory (source/uploads): /uploads/avatar.png
# You can also use a link of image.
url:
# Banner area.
banner:
# Effective for all pages.
enable: true
# You can override it by `header_title` in Front-Matter of .md
title: Hello Stun
# You can override it by `header_subtitle` in Front-Matter of .md
subtitle: An elegant theme for Hexo
# Mask effect of the background image.
mask:
enable: false
# Opacity of the mask (value: 0 ~ 1)
opacity: 0.5
nav:
# Height of the navigation bar (Supports all CSS units)
height: 50px
# Background color of the navigation bar (Please use '' to wrap the value).
bg_color: '#333'
# The icon that prompts the user to pull down.
scroll_down_icon:
enable: false
# Icon name in FontAwesome, see: https://fontawesome.com/icons
name: fas fa-angle-down
animation: true
# The body of site.
body:
# Background image of site body.
bg_image:
enable: false
# In theme directory (source/images): /images/avatar.png
# In site directory (source/uploads): /uploads/avatar.png
# You can also use a link of image.
url:
# Whether to fixed the background image.
fixed: true
# Whether to repeat the image as much as possible to cover the entire area.
repeat: false
# Mask effect of the background image.
mask:
enable: false
# Opacity of mask (value: 0 ~ 1)
opacity:
# Opacity of the mask by default.
default: 0.1
# Opacity of the mask in night mode.
night_mode: 0.6
# The footer of site.
footer:
# Background image of site footer.
bg_image:
enable: false
# In theme directory (source/images): /images/avatar.png
# In site directory (source/uploads): /uploads/avatar.png
# You can also use a link of image.
url:
# Mask effect of the background image.
mask:
enable: false
# Opacity of mask (value: 0 ~ 1)
opacity: 0.5
# Copyright information.
copyright:
enable: true
# If not set, will be used `author` from Hexo main config (e.g. liuyib All Rights Reserved)
text:
# Start time. If not set, the current year will be used.
since:
# End time. If not set, the current year will be used.
end:
# The icon between the copyright and the owner.
icon:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
name: fas fa-heart
# Heartbeat animation.
animation: false
# (Please use '' to wrap the value)
color: '#ff0000'
# Hexo link
powered:
enable: true
# Whether to show version after Hexo link (e.g. vX.X.X)
version: true
# Theme link
theme:
enable: true
# Whether to show version after theme link (e.g. vX.X.X)
version: true
# Beian information for Chinese users, see: http://www.miitbeian.gov.cn/
beian:
enable: false
# 备案 XXXXXXXX 号
icp:
# Any custom text (e.g. Hosted by <a href="https://pages.github.com/" rel="noopener" target="_blank">Github Pages</a>)
custom:
enable: false
text:
# Creative Commons 4.0 International License
creative_commons:
enable: true
# Optional values: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
# For details, please see: https://creativecommons.org/share-your-work/licensing-types-examples/
license: BY-NC-SA
# Show the CC license in the sidebar.
sidebar: true
# Show the CC license at the post bottom.
post: true
# Optional values:
# id | ms | ca | da | de | en | es | es_ES | eo | eu | fr | gl | hr
# it | lv | lt | hu | nl | no | pt | pt_BR | pl | ro | sl | fi | sv
# tr | is | cs | el | be | ru | zh | zh_TW | uk | ar | fa | bn | ja | ko
# If not set, `en` will be used by default.
language:
# Back to top
back2top:
enable: true
icon:
# Icon name in FontAwesome, see: https://fontawesome.com/icons
name: fas fa-rocket
# Rotation Angle of icon.
rotate: -45deg
# (Please use '' to wrap the value)
color: '#49b1f5'
# Color when the mouse hovers it (Please use '' to wrap the value)
hover_color: '#fc6423'
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
# The sidebar of site.
sidebar:
enable: true
# Optional values: left | right
position: right
# The distance from the top of the page when the sidebar is fixed (Only `px` unit is supported)
offsetTop: 20px
# Whether to show horizon line.
horizon_line: false
author:
enable: true
# Avatar in the site sidebar.
avatar:
# In theme directory (source/images): /images/avatar.png
# In site directory (source/uploads): /uploads/avatar.png
# You can also use a link of image.
url: /images/icons/stun-logo.svg
# If true, the avatar would be displayed in a circle.
rounded: false
# Opacity of avatar (value: 0 ~ 1)
opacity: 1
# Mouse hover animation
# Optional values: turn | shake
animation: turn
# Your favorite motto.
motto: Hello Stun
# Social links
# Value before `||` is the target link, value after `||` is the name of FontAwesome icon.
# Usage: `Key: /link/ || fa(s|r|l|d|b) fa-iconname`
# Select your icon name, see: https://fontawesome.com/icons
# If you can`t find a suitable icon, you can choose to display text by adding the `origin:` prefix.
# e.g. `origin:sf`, so `sf` will be displayed.
social:
github: https://github.com/ || fab fa-github
google: https://plus.google.com/ || fab fa-google
twitter: https://twitter.com/ || fab fa-twitter
youtube: https://youtube.com/ || fab fa-youtube
# segmentfault: https://segmentfault.com/ || origin:sf
# weibo: https://weibo.com/ || fab fa-weibo
# zhihu: https://www.zhihu.com/ || origin:知
# wechat: yournumber || fab fa-weixin
# telegram: yournumber || fab fa-telegram
# qq: yournumber || fab fa-qq
social_setting:
enable: false
# Only show by icon.
icon_only: true
# Table Of Contents in the Sidebar.
toc:
enable: true
# Automatically add list number to toc.
list_number: true
# If true, all words will be placed on the next lines when they overflow.
wrap: true
# If true, the toc of post will always be displayed, rather than the activated part of it.
expand_all: false
# Minimum heading depth of generated toc.
# You can also set it in Front-matter by `toc_max_depth`.
min_depth: 1
# You can also set it in Front-matter by `toc_min_depth`.
# Maximum heading depth of generated toc.
max_depth: 6
# Subscribe of email and rss.
feed:
enable: false
# Enter your email subscription link (e.g. http://eepurl.com/guAE6j)
email:
# Enter the rss address of you set (e.g. /atom.xml)
# Dependency: https://github.com/hexojs/hexo-generator-feed/
# !!! Don't enable this before install dependency by `npm install hexo-generator-feed --save` in hexo root directory.
rss:
# The reading progress of post.
reading_progress:
enable: true
# (Please use '' to wrap the value)
color: '#fc6423'
height: 1px
# ---------------------------------------------------------------
# Page config
# ---------------------------------------------------------------
codeblock:
# The style of code block.
# Optional values: default | simple | carbon
style: default
# The theme of code highlight.
# Optional values: light | dark | ocean
highlight: light
# Whether to wrap when code overflow.
word_wrap: false
# Add a line below h1, h2 tags.
heading_line: true
# Reward QR Code
reward:
enable: false
# Your QR code for collecting money.
alipay:
wechat:
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
# The information of post.
post_meta:
# Only show by icon.
icon_only: false
# The create time of post.
created:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: far fa-calendar-plus
# The update time of post.
updated:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: far fa-calendar-check
# The approximate reading time of post.
# Dependency: https://github.com/willin/hexo-wordcount/
# !!! Don't enable this before install dependency by `npm install hexo-wordcount --save` in hexo root directory.
reading_time:
enable: false
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: far fa-clock
# Set reading speed to count reading time.
speed:
# Reading speed of zh-CN.
zh: 200
# Reading speed of en-US.
en: 80
# Counting the words of post.
# Dependency: https://github.com/willin/hexo-wordcount/
# !!! Don't enable this before install dependency by `npm install hexo-wordcount --save` in hexo root directory.
word_count:
enable: false
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: far fa-file-word
# The article list on the homepage or archives page.
post_list:
# Whether to paginate.
paginate:
home: true
archives: false
# Whether to show the cover image of post.
cover_image:
home: false
# The widget of post.
post_widget:
# Whether to show tags at the bottom of post.
tags: true
# Whether to show "------ END ------" at the bottom of post.
end_text:
enable: true
# Whether to show a horizon line before "------ END ------".
horizon_line: true
# Article sharing
share:
enable: false
# The text displayed before the share button.
label: 'Share to: '
# Optional values: qzone | qq | weibo | wechat | douban | linkedin | facebook | twitter | google
target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google
# Stick post to the top
# Dependency: https://github.com/netcan/hexo-generator-index-pin-top/
# !!! Don't enable this before install dependency by `npm install hexo-generator-index-pin-top --save` in hexo directory.
stick_top:
# Position of icon
# Optional values: left | right
position: right
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: fas fa-thumbtack
# Rotation Angle of icon.
rotate: 45deg
# (Please use '' to wrap the value)
color: '#999'
# ---------------------------------------------------------------
# Comment config
# ---------------------------------------------------------------
# Gittalk
# See: https://github.com/gitalk/gitalk/
gitalk:
enable: false
# Github username.
owner:
# Github repository.
repo:
# Github Application Client ID.
client_id:
# Github Application Client Secret.
client_secret:
# GitHub repo owner and collaborators, only these guys can initialize github issues.
admin:
# Facebook-like distraction free mode.
distraction_free_mode: false
# Gitalk's display language depends on user's browser or system environment.
# If you want everyone visiting your site to see a uniform language, you can set a force language value.
# Optional values: en | zh-CN | es-ES | fr | ru | zh-TW
language:
# Waline
# See: https://waline.js.org/
waline:
enable: false
# The URL of your server.
serverURL:
# Comment box placeholder.
placeholder: Just go go
# Gravatar style.
avatar: mp
# Custom comment header.
meta: nick,mail,link
# The number of comments per page.
pageSize: 10
# Optional values: en | zh-CN | zh-TW | jp
lang: zh-CN,zh-TW,en
# Article reading statistics.
visitor: false
# Valine
# See: https://valine.js.org/quickstart.html
valine:
enable: false
# Your leancloud application appid.
appid:
# Your leancloud application appkey.
appkey:
# Mail notifier.
notify: true
# Verification code.
verify: true
# Comment box placeholder.
placeholder: Just go go
# Gravatar style.
avatar: mp
# Custom comment header.
meta: nick,mail,link
# Pagination size.
pageSize: 10
# Article reading statistics.
visitor: false
# Whether to record the commenter IP.
recordIP: false
# Optional values: en | zh-cn
language:
# MiniValine
# See: https://github.com/MiniValine/MiniValine#Options
minivaline:
enable: false
appId: # Your leancloud application appid
appKey: # Your leancloud application appkey
placeholder: Write a Comment # Comment box placeholder
adminEmailMd5: # The MD5 of Admin Email to show Admin Flag.
math: true # Support MathJax.
md: true # Support Markdown.
# MiniValine's display language depends on user's browser or system environment
# If you want everyone visiting your site to see a uniform language, you can set a force language value
# Optional values: en | zh-CN | (and many more)
# More i18n info: https://github.com/MiniValine/minivaline-i18n
lang:
# Livere
# See: https://www.livere.com/
livere:
enable: false
uid:
# Disqus
# See: https://disqus.com/
disqus:
enable: false
shortname:
count: true
# Utterances
# See: https://utteranc.es/
utterances:
enable: false
# Github username.
owner:
# Github repository.
repo:
# Choose the mapping between blog posts and GitHub issues.
# Optional values: pathname | url | title | og:title
mapping: title
# Choose the label that will be assigned to issues created by Utterances.
# Emoji are supported in label names.
label: utterances
# Choose an Utterances theme that matches your blog.
# Optional values: github-light | github-dark | github-dark-orange | icy-dark | dark-blue | photon-dark
theme: github-light
# ! -------------------------------------------------------------------------------
# ! Don't set this unless the URL of the script in the official website is changed.
# ! -------------------------------------------------------------------------------
script_url: https://utteranc.es/client.js
# Facebook Comments
# See: https://developers.facebook.com/docs/plugins/comments
fbcomments:
enable: false
# The ID of your own Facebook App.
appId:
# See: https://developers.facebook.com/docs/internationalization#locales
# Example: en_US | zh_CN | zh_HK ... and so on. For detail, see: ☝
lang: en_US
# Number of comments displayed by default.
numPosts: 10
# See: https://developers.facebook.com/docs/plugins/comments#sorting
# Optional values: social | reverse_time | time
order_by: reverse_time
# Optional values: true | false
lazy: true
# Whether to optimize the display on the mobile.
# Optional values: true | false
mobile: true
width: 100%
# ---------------------------------------------------------------
# Statistics and Analytics config
# ---------------------------------------------------------------
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
busuanzi:
enable: false
# Only show by icon.
icon_only: false
# Number of unique visitor to the entire site.
site_uv:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
icon: fas fa-user
# Number of page view to the entire site.
site_pv:
enable: true
icon: fas fa-eye
# Number of page view to a post.
post_pv:
enable: true
icon: fas fa-eye
# Google analytics ID
# See: https://analytics.google.com/
google_analytics:
# Baidu analytics ID
# See: https://tongji.baidu.com/
baidu_analytics:
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------
# Algolia Search
# Dependency: https://github.com/algolia/instantsearch.js/
algolia_search:
enable: false
hits:
# Number of search results displayed per page.
per_page: 10
labels:
# Whether to show stats of search.
show_stats: true
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
enable: false
# Auxiliary search buttons
# ! -----------------------------------------------------------------------------------------
# ! This feature can only be enabled if either `algolia_search` or `local_search` is enabled.
# ! -----------------------------------------------------------------------------------------
assist_search:
enable: false
# Show the Google Search button. Use `www.google.com` to search for what you type.
google: true
# Show the Bing Search button. Use `www.bing.com` to search for what you type.
bing: true
# Show the Baidu Search button. Use `www.baidu.com` to search for what you type.
baidu: true
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------
# Canvas-ribbon
# Dependency: https://github.com/hustcc/ribbon.js
canvas_ribbon:
enable: false
# The width of the ribbon.
size: 120
# The transparency of the ribbon.
alpha: 0.6
# The display level of the ribbon.
zIndex: -1
# Canvas-nest
# Dependency: https://github.com/hustcc/canvas-nest.js
canvas_nest:
enable: false
# Color of lines.
# RGB values, use `,` to separate.
color: '0,0,0'
# The opacity of lines (value: 0 ~ 1)
opacity: 0.6
# The number of lines.
count: 99
# `z-index` property of the background.
zIndex: -1
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
enable: false
# If true, this function will be enabled on every page.
# If false, this function will be enabled only if the page where `math: true` is set in `Front-matter`.
per_page: false
# ! -------------------------------------------------------------------------------
# ! Please see the documentation before using. See:
# ! https://theme-stun.github.io/docs/zh-CN/advanced/third-part.html#mathjax
# ! -------------------------------------------------------------------------------
# Optional values: mathjax | katex
engine: katex
mathjax:
cdn: https://cdn.jsdelivr.net/npm/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem:
enable: false
mhchem_js: https://cdn.jsdelivr.net/npm/mathjax-mhchem@3.3.2/mhchem.min.js
katex:
cdn: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css
# See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
copy_tex:
enable: true
copy_tex_js: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/copy-tex.min.js
copy_tex_css: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/contrib/copy-tex.css
# ---------------------------------------------------------------
# Other config
# ---------------------------------------------------------------
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false
# Click to enlarge picture.
zoom_image:
enable: true
# The color of mask.
# (Please use '' to wrap the value)
mask_color: 'rgba(0,0,0,0.6)'
# The gap between image and a edge of screen when image is enlarged.
# (Only `px` unit is supported)
gap_aside: 20px
# If you are use "photos" attribute in the Front-matter,
# you can enable this to show images in waterfalls flow.
# See: https://github.com/desandro/masonry/
gallery_waterfall:
enable: false
col_width: 220px
gap_x: 10px
gap_y: 10px
# Lazy load the images of post.
# See: https://github.com/tuupola/lazyload
lazyload:
enable: false
# Optional values: gif | block
placeholder: gif
# Quicklink support
# See: https://github.com/GoogleChromeLabs/quicklink/
quicklink:
enable: false
# Quicklink (quicklink.umd.js script) is loaded on demand.
# Add `quicklink: true` in Front-matter of the page or post you need.
# Home page and archive page can be controlled through home and archive options below.
home: true
archive: true
# Initialize quicklink after the load event fires.
delay: true
# Custom a time in milliseconds by which the browser must execute prefetching.
timeout: 10000
# Enable fetch() or falls back to XHR.
priority: true
# For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
# See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
# ! --------------------------------------------------
# ! If you don't know the following, please ignore it.
# ! --------------------------------------------------
ignores:
- /\/api\/?/
- uri => uri.includes('.xml')
- uri => uri.includes('.zip')
- (uri, el) => el.hasAttribute('nofollow')
- (uri, el) => el.hasAttribute('noprefetch')
# Pjax
# See: https://github.com/MoOx/pjax/
pjax:
enable: false
# When switching pages, scroll to the bottom of the top image.
avoid_banner: false
# ! --------------------------------------------------
# ! If you don't know the following, please ignore it.
# ! --------------------------------------------------
# Please see: https://github.com/MoOx/pjax/#options
elements:
selectors:
switches:
switchesOptions:
history: true
# If you enable this, you must set `avoid_banner: false` firstly.
scrollTo: false
scrollRestoration: false
cacheBust: false
debug: false
currentUrlFullReload: false
timeout: 0
# Google AdSense
google_adsense:
enable: false
client:
js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
# The links with `target="_blank"` attribute.
external_link:
# Adding an icon make it easier for users to know that this is an external link.
icon:
enable: true
# Icon name in FontAwesome, see: https://fontawesome.com/icons
name: fas fa-external-link-alt
# (Please use '' to wrap the value)
color: '#aaa'
# The shortcuts of the site.
shortcuts:
# Switch to the prev / next post by key.
# `Ctrl + ←` is the shortcuts to prev post.
# `Ctrl + →` is the shortcuts to next post.
switch_post:
enable: false
# Tag cloud
# If not used, comment it or ignore it.
tag_cloud:
# (Please use '' to wrap the value)
start_color: '#a4d8fa'
end_color: '#49b1f5'
# Size for tag.
min_size: 16
max_size: 26
# Maximum number of tags displayed. Change it if you have more than 200 tags.
max_amount: 200
# Eliminate the old version of IE browser (IE6~11).
# See: https://support.dmeng.net/upgrade-your-browser.html
kill_old_ie:
enable: false
# The URL of warning page.
# ! ----------------------------------------------------------------
# ! Usually you don't need to set this option, just use the default.
# ! ----------------------------------------------------------------
warning_url: https://support.dmeng.net/upgrade-your-browser.html
# Assets
# In theme directory (source/css)
css: css
# In theme/hexo directory (source/css/custom.css)
# Allow user to override css.
css_custom: css/custom.css
# In theme directory (source/js)
js: js
# In theme directory (source/images)
images: images
# Set icon for some components.
# Icon name in FontAwesome, see: https://fontawesome.com/icons
# ! -------------------------------------------------------------------
# ! Do not edit the follow configs, unless you know what you are doing.
# ! -------------------------------------------------------------------
icon:
search: fas fa-search
localsearch_empty: far fa-meh
menu_btn: fas fa-bars
feed_email: fas fa-envelope
feed_rss: fas fa-rss
paginator_prev: fas fa-angle-left
paginator_next: fas fa-angle-right
read_more_btn: fas fa-long-arrow-alt-right
post_tags: fas fa-tag
copy_btn: fas fa-copy
prompt_success: fas fa-check-circle
prompt_info: fas fa-arrow-circle-right
prompt_warning: fas fa-exclamation-circle
prompt_error: fas fa-times-circle
waline_visitor: fas fa-eye
valine_visitor: fas fa-eye
post_heading: fas fa-link
notetag_default: fas fa-arrow-circle-right
notetag_success: fas fa-check-circle
notetag_info: fas fa-info-circle
notetag_warning: fas fa-exclamation-circle
notetag_danger: fas fa-minus-circle
google: fab fa-google
# bing: fab fa-bing # not exist
# Set a CDN address for the vendor you want to customize.
# ! -------------------------------------------------------------------
# ! Do not edit the follow configs, unless you know what you are doing.
# ! -------------------------------------------------------------------
cdn:
# Using version: 5.12.1
# See: https://fontawesome.com/
# Example:
# fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css
# fontawesome: //cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.12.1/css/all.min.css
# fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
# fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css
fontawesome:
# Using version: 3.4.1
# Example:
# jquery: //cdn.jsdelivr.net/npm/jquery@v3.4.1/dist/jquery.min.js
# jquery: //cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js
jquery:
# Using version: 1.5.2
# See: http://velocityjs.org/
# Example:
# velocity: //cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.min.js
# velocity: //cdnjs.cloudflare.com/ajax/libs/velocity/1.5.2/velocity.min.js
# velocity_ui: //cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.ui.min.js
# velocity_ui: //cdnjs.cloudflare.com/ajax/libs/velocity/1.5.2/velocity.ui.min.js
velocity:
velocity_ui:
# gitalk & js-md5
# Using version: latest & latest
# See: https://github.com/gitalk/gitalk/, https://github.com/emn178/js-md5/
# Example:
# gitalk_js: //cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.min.js
# gitalk_css: //cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.css
# md5: //cdn.jsdelivr.net/npm/js-md5@latest/src/md5.min.js
gitalk_js:
gitalk_css:
gitalk_md5:
# valine & leancloud-storage
# Using version: latest & latest
# See: https://github.com/xCss/Valine/, https://www.npmjs.com/package/leancloud-storage/
# Example:
# valine: //cdn.jsdelivr.net/npm/valine@latest/dist/Valine.min.js
# leancloud_storage: //cdn.jsdelivr.net/npm/leancloud-storage@latest/dist/av-min.js
valine:
leancloud_storage:
# Waline
# See: https://github.com/lizheming/waline
# Example:
# waline: //unpkg.com/@waline/client@0.8.5/dist/Waline.min.js
waline:
# minivaline
# See: https://github.com/MiniValine/MiniValine
# Example:
# minivaline: //cdn.jsdelivr.net/npm/minivaline/dist/MiniValine.min.js
minivaline:
# busuanzi
# Using version: latest
# See: https://busuanzi.ibruce.info/
# Example:
# busuanzi: //cdn.jsdelivr.net/gh/sukkaw/busuanzi@latest/bsz.pure.mini.js
busuanzi:
# Using version: 2.1.1
# See: https://busuanzi.ibruce.info/
# Example:
# instantsearch_js: //cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.js
# instantsearch_css: //cdn.jsdelivr.net/npm/instantsearch.js@2.1.1/dist/instantsearch.min.css
instantsearch_js:
instantsearch_css:
# Using version: latest
# See: https://github.com/hustcc/ribbon.js
# Example:
# canvas_ribbon: //cdn.jsdelivr.net/npm/ribbon.js@latest/dist/ribbon.min.js
canvas_ribbon:
# Using version: latest
# See: https://github.com/hustcc/canvas-nest.js
# Example:
# canvas_nest: //cdn.jsdelivr.net/npm/canvas-nest.js@1.0.1/dist/canvas-nest.min.js
canvas_nest:
# Using version: 3.5.7
# See: https://www.fancyapps.com/fancybox/3/
# Example:
# fancybox_js: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.js
# fancybox_css: //cdn.jsdelivr.net/gh/fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css
fancybox_js:
fancybox_css: