_config.yml 30.5 KB
Newer Older
1 2 3 4
# ---------------------------------------------------------------
# Theme Core Configuration Settings
# ---------------------------------------------------------------

5
# Remove unnecessary files after hexo generate.
6
shake_file: true
7 8 9 10 11 12 13 14 15

# ---------------------------------------------------------------
# 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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
16 17 18 19 20
# 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

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
# 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:

39 40 41 42
# Sougou Webmaster tools verification setting
# see http://zhanzhang.sogou.com/
sougou_site_verification:

43 44 45 46
# ---------------------------------------------------------------
# Menu config
# ---------------------------------------------------------------

47 48
# The menu in the website header.
# Value before `||` is the target link, value after `||` is the name of FontAwesome icon.
49 50
# Usage(With Icon): `Key: /link/ || fa(s|r|l|d|b) fa-iconname`
# Usage(No Icon)  : `Key: /link/`
51
# Select your icon name, see: https://fontawesome.com/icons
52
menu:
53 54 55 56
  home: / || fas fa-home
  archives: /archives/ || fas fa-folder-open
  # categories: /categories/ || fas fa-layer-group
  # tags: /tags/ || fas fa-tags
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
57
  # You can add a secondary menu like follow.
58
  # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
59

60
# Secondary menu
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
61 62
submenu:
  # Add item of secondary menu in here.
63 64 65
  # 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
66 67 68 69 70 71 72

menu_settings:
  # Only show by icon.
  icon_only: false
  # Only show by text.
  text_only: false

73
# ---------------------------------------------------------------
74
# Site config
75
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
76

77
favicon:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
78 79
  small: /images/icons/favicon-16x16.png
  medium: /images/icons/favicon-32x32.png
80 81 82
  # ! --------------------------------------------------
  # ! If you don't know the following, please ignore it.
  # ! --------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
83
  # apple_touch_icon: /images/icons/apple-touch-icon.png
84
  # safari_pinned_tab: /images/icons/stun-logo.svg
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
85 86
  # msapplication: /images/icons/favicon-144x144.png

87
# Progressive Web Apps
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
88
# See: https://github.com/lavas-project/hexo-pwa/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
89 90 91
pwa:
  enable: false
  manifest: /manifest.json
92
  # (Please use "" to wrap the value)
93
  theme_color: "#54bcff"
94

95
# Night mode
96 97
night_mode:
  enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
98
  # The button of switching to the night mode.
99
  button:
100
    # Color of button (Please use "" to wrap the value).
101
    color: "#fafafa"
102
    # Background color of button (Please use "" to wrap the value).
103
    bg_color: "#8c8a8a"
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
104
  # The icon that stand for day and night.
105 106 107 108
  icon:
    dark: 🌜
    light: 🌞

109 110
# The layout for sidebar and content of site.
layout:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
111
  # The width of the content area in website.
112
  content: 768px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
113
  # The width of the sidebar in website.
114
  sidebar: 300px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
115
  # The width between the content and the sidebar.
116
  content_sidebar_gap: 30px
117
  # The padding property of the main tag.
118 119 120 121 122
  # e.g. Usage:
  # 20px
  # 20px 30px
  # 20px 20px 30px
  # 20px 30px 40px 25px
123
  main_padding:
124
    # Take effect when screen width in: [768px, Infinity)
125
    default: 20px
126
    # Take effect when screen width in: [576px, 768px)
127
    tablet: 15px
128
    # Take effect when screen width in: [0px, 576px)
129
    mobile: 10px
130

131
# The header of site.
132
header:
133 134 135 136
  enable: true
  show_on:
    # Whether to show on the article page.
    post: true
137
  # If you set a percentage, it will be calculated based on the height of screen (Supports all CSS units)
138
  height: 80%
139
  # Background image of site header.
140
  bg_image:
141
    enable: false
142
    # In theme directory (source/images): /images/avatar.png
143 144
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
145
    url:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
146
  # Mask effect of the background image.
147
  mask:
148
    enable: false
149
    # Opacity of the mask (value: 0 ~ 1)
150
    opacity: 0.5
151
  nav:
152
    # Height of the navigation bar (Supports all CSS units)
153
    height: 50px
154
    # Background color of the navigation bar (Please use "" to wrap the value).
155
    bg_color: "#333"
156
  # The icon that prompts the user to pull down.
157 158
  scroll_down_icon:
    enable: false
159 160
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-angle-down
161
    animation: true
162

163
# The body of site.
164
body:
165
  # Background image of site body.
166 167 168 169 170 171 172 173 174 175 176 177
  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:
178
    enable: false
179
    # Opacity of mask (value: 0 ~ 1)
180
    opacity:
181
      # Opacity of the mask by default.
182
      default: 0.1
183
      # Opacity of the mask in night mode.
184
      night_mode: 0.6
185

186
# The footer of site.
187
footer:
188
  # Background image of site footer.
189
  bg_image:
190
    enable: false
191
    # In theme directory (source/images): /images/avatar.png
192 193
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
194
    url:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
195 196 197
  # Mask effect of the background image.
  mask:
    enable: false
198
    # Opacity of mask (value: 0 ~ 1)
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
199
    opacity: 0.5
200
  # Copyright information.
201 202
  copyright:
    enable: true
203
    # If not set, will be used `author` from Hexo main config (e.g. liuyib All Rights Reserved)
204
    text:
205
    # Start time. If not set, the current year will be used.
206
    since:
207
    # End time. If not set, the current year will be used.
208
    end:
209
  # The icon between the copyright and the owner.
210
  icon:
211
    enable: true
212 213
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-heart
214
    # Heartbeat animation.
215
    animation: false
216
    # (Please use "" to wrap the value)
217
    color: "#ff0000"
218
  # Hexo link
219 220
  powered:
    enable: true
221
    # Whether to show version after Hexo link (e.g. vX.X.X)
222
    version: true
223
  # Theme link
224 225
  theme:
    enable: true
226
    # Whether to show version after theme link (e.g. vX.X.X)
227
    version: true
228
  # Beian information for Chinese users, see: http://www.miitbeian.gov.cn/
229 230 231
  beian:
    enable: false
    # 备案 XXXXXXXX 号
232
    icp:
233
  # Any custom text (e.g. Hosted by <a href="https://pages.github.com/" rel="noopener" target="_blank">Github Pages</a>)
234 235
  custom:
    enable: false
236
    text:
237

238
# Creative Commons 4.0 International License
239 240
creative_commons:
  enable: true
241
  # Optional values: BY | BY-SA | BY-ND | BY-NC | BY-NC-SA | BY-NC-ND
242 243 244 245 246 247
  # 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
248 249 250 251 252
  # 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.
253 254
  language:

255
# Back to top
256 257 258
back2top:
  enable: true
  icon:
259 260
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-rocket
261 262
    # Rotation Angle of icon.
    rotate: -45deg
263
    # (Please use "" to wrap the value)
264
    color: "#49b1f5"
265
    # Color when the mouse hovers it (Please use "" to wrap the value)
266 267
    hover_color: "#fc6423"

268 269 270
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
271

272
# The sidebar of site.
273
sidebar:
274
  enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
275
  # Optional values: left | right
276
  position: right
277
  # The distance from the top of the page when the sidebar is fixed (Only `px` unit is supported)
278
  offsetTop: 20px
279
  # Whether to show horizon line.
280
  horizon_line: false
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
281

282 283
author:
  enable: true
284
  # Avatar in the site sidebar.
285
  avatar:
286
    # In theme directory (source/images): /images/avatar.png
287
    # In site directory (source/uploads): /uploads/avatar.png
288
    # You can also use a link of image.
289
    url: /images/icons/stun-logo.svg
290
    # If true, the avatar would be displayed in a circle.
291
    rounded: false
292
    # Opacity of avatar (value: 0 ~ 1)
293
    opacity: 1
294
    # Mouse hover animation
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
295
    # Optional values: turn | shake
296
    animation: turn
297 298
  # Your favorite motto.
  motto: hello world
299

300
# Social links
301 302
# 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`
303
# Select your icon name, see: https://fontawesome.com/icons
304 305
# 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.
306
social:
307 308 309 310
  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
311
  # segmentfault: https://segmentfault.com/ || origin:sf
312
  # weibo: https://weibo.com/ || fab fa-weibo
313
  # zhihu: https://www.zhihu.com/ || origin:知
314 315 316
  # wechat: yournumber || fab fa-weixin
  # telegram: yournumber || fab fa-telegram
  # qq: yournumber || fab fa-qq
317

318
social_setting:
319
  enable: false
320
  # Only show by icon.
321
  icon_only: true
322

323
# Table Of Contents in the Sidebar.
324 325 326
toc:
  enable: true
  # Automatically add list number to toc.
327
  list_number: true
328
  # If true, all words will be placed on the next lines when they overflow.
329
  wrap: true
330 331
  # If true, the toc of post will always be displayed, rather than the activated part of it.
  expand_all: false
332 333 334 335 336 337
  # 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
338

339
# Subscribe of email and rss.
340
feed:
341
  enable: false
342
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j)
343
  email:
344
  # Enter the rss address of you set (e.g. /atom.xml)
345 346
  # 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.
347
  rss:
348

349
# The reading progress of post.
350 351
reading_progress:
  enable: true
352
  # (Please use "" to wrap the value)
353
  color: "#fc6423"
354
  height: 1px
355

356 357 358 359 360 361
# ---------------------------------------------------------------
# Page config
# ---------------------------------------------------------------

codeblock:
  # The style of code block.
362
  # Optional values: default | simple | carbon
363 364
  style: default
  # The theme of code highlight.
365
  # Optional values: light | dark | ocean
366
  highlight: light
367
  # Whether to wrap when code overflow.
368 369
  word_wrap: false

370
# Add a line below h1, h2 tags.
371 372
heading_line: true

373
# Reward QR Code
374
reward:
375
  enable: false
376
  # Your QR code for collecting money.
377 378 379
  alipay:
  wechat:

380 381 382
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
383

384
# The information of post.
385
post_meta:
386
  # Only show by icon.
387
  icon_only: false
388
  # The create time of post.
389 390
  created:
    enable: true
391 392 393
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: far fa-calendar-plus
  # The update time of post.
394 395
  updated:
    enable: true
396 397 398 399 400
    # 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.
401 402
  reading_time:
    enable: false
403 404 405
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: far fa-clock
    # Set reading speed to count reading time.
406 407 408 409 410
    speed:
      # Reading speed of zh-CN.
      zh: 200
      # Reading speed of en-US.
      en: 80
411 412 413
  # 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.
414 415
  word_count:
    enable: false
416 417
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: far fa-file-word
418

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
419 420 421 422 423 424
# The article list on the homepage or archives page.
post_list:
  # Whether to paginate.
  paginate:
    home: true
    archives: false
425 426
  # Whether to show the cover image of post.
  cover_image:
427
    home: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
428 429 430

# The widget of post.
post_widget:
431
  # Whether to show tags at the bottom of post.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
432
  tags: true
433
  # Whether to show "------ END ------" at the bottom of post.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
434 435
  end_text:
    enable: true
436
    # Whether to show a horizon line before "------ END ------".
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
437
    horizon_line: true
438 439
  # Article sharing
  share:
440
    enable: false
441 442
    # The text displayed before the share button.
    label: "Share to: "
443
    # Optional values: qzone | qq | weibo | wechat | douban | linkedin | facebook | twitter | google
444
    target: qzone, qq, weibo, wechat, douban, linkedin, facebook, twitter, google
C
coortop 已提交
445

446
# Stick post to the top
447 448
# 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.
449
stick_top:
450 451
  # Position of icon
  # Optional values: left | right
452
  position: right
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
453
  # Icon name in FontAwesome, see: https://fontawesome.com/icons
454
  icon: fas fa-thumbtack
455 456
  # Rotation Angle of icon.
  rotate: 45deg
457
  # (Please use "" to wrap the value)
458
  color: "#999"
459

460
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
461 462 463
# Comment config
# ---------------------------------------------------------------

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
464
# Gittalk
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
465
# See: https://github.com/gitalk/gitalk/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
466 467 468
gitalk:
  enable: false
  # Github username.
469
  owner:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
470
  # Github repository.
471
  repo:
472
  # Github Application Client ID.
473
  client_id:
474
  # Github Application Client Secret.
475
  client_secret:
476
  # GitHub repo owner and collaborators, only these guys can initialize github issues.
477
  admin:
478
  # Facebook-like distraction free mode.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
479
  distraction_free_mode: false
480
  # Gitalk's display language depends on user's browser or system environment.
481
  # If you want everyone visiting your site to see a uniform language, you can set a force language value.
482
  # Optional values: en | zh-CN | es-ES | fr | ru | zh-TW
483
  language:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
484

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
485 486 487 488 489
# Valine
# See: https://valine.js.org/quickstart.html
valine:
  enable: false
  # Your leancloud application appid.
490
  appid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
491
  # Your leancloud application appkey.
492
  appkey:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508
  # 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
509
  # Optional values: en | zh-cn
510
  language:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
511

M
MH 已提交
512 513 514 515 516 517 518 519 520 521 522 523
# 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
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
524
  # Optional values: en  | zh-CN | (and many more)
M
MH 已提交
525
  # More i18n info: https://github.com/MiniValine/minivaline-i18n
M
MH 已提交
526
  lang:
M
MH 已提交
527

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
528 529
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
530 531
livere:
  enable: false
532
  uid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
533

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
534 535 536 537
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
538
  shortname:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
539 540
  count: true

541 542 543 544 545 546 547 548 549
# Utterances
# See: https://utteranc.es/
utterances:
  enable: false
  # Github username.
  owner:
  # Github repository.
  repo:
  # Choose the mapping between blog posts and GitHub issues.
550
  # Optional values: pathname | url | title | og:title
551
  mapping: title
552 553 554 555
  # 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.
556
  # Optional values: github-light | github-dark | github-dark-orange | icy-dark | dark-blue | photon-dark
557 558 559 560 561 562
  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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
563
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
564 565
# Statistics and Analytics config
# ---------------------------------------------------------------
566

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
567 568
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
569
busuanzi:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
570
  enable: false
571 572 573 574 575
  # Only show by icon.
  icon_only: false
  # Number of unique visitor to the entire site.
  site_uv:
    enable: true
576 577
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: fas fa-user
578 579 580
  # Number of page view to the entire site.
  site_pv:
    enable: true
581
    icon: fas fa-eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
582 583
  # Number of page view to a post.
  post_pv:
584
    enable: true
585
    icon: fas fa-eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
586

587 588 589 590 591 592 593 594 595 596 597 598
# Google analytics ID
# See: https://analytics.google.com/
google_analytics:

# Baidu analytics ID
# See: https://tongji.baidu.com/
baidu_analytics:

# Tencent analytics ID
# See: https://v2.ta.qq.com/
tencent_analytics:

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
599 600 601 602 603
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------

# Algolia Search
604
# Dependency: https://github.com/algolia/instantsearch.js/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
605
algolia_search:
606
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
607 608 609 610 611 612 613
  hits:
    # Number of search results displayed per page.
    per_page: 10
  labels:
    # Whether to show stats of search.
    show_stats: true

614 615 616
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
617 618 619 620 621 622 623
  enable: true

# Auxiliary search buttons
# ! -----------------------------------------------------------------------------------------
# ! This feature can only be enabled if either `algolia_search` or `local_search` is enabled.
# ! -----------------------------------------------------------------------------------------
assist_search:
624
  enable: false
625 626 627 628 629 630
  # 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
631

632 633 634 635 636
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

# Canvas-ribbon
637
# Dependency: https://github.com/hustcc/ribbon.js
638 639 640
canvas_ribbon:
  enable: false
  # The width of the ribbon.
641
  size: 120
642 643 644 645 646 647
  # The transparency of the ribbon.
  alpha: 0.6
  # The display level of the ribbon.
  zIndex: -1

# Canvas-nest
648
# Dependency: https://github.com/hustcc/canvas-nest.js
649 650
canvas_nest:
  enable: false
651 652
  # Color of lines.
  # RGB values, use `,` to separate.
653
  color: "0,0,0"
654
  # The opacity of lines (value: 0 ~ 1)
655
  opacity: 0.6
656
  # The number of lines.
657
  count: 99
658
  # `z-index` property of the background.
659 660
  zIndex: -1

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
661 662 663 664
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
665
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
666 667
  # 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`.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
668
  per_page: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
669 670 671 672 673
  # ! -------------------------------------------------------------------------------
  # ! Please see the documentation before using. See:
  # ! https://liuyib.github.io/hexo-theme-stun/zh-CN/advanced/third-part.html#mathjax
  # ! -------------------------------------------------------------------------------
  # Optional values: mathjax | katex
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
674 675 676 677 678 679 680 681 682
  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
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
683
    # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
684 685 686 687 688
    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

689
# ---------------------------------------------------------------
690 691
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
692

693 694 695 696
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
697
# Click to enlarge picture.
698 699 700
zoom_image:
  enable: true
  # The color of mask.
701
  # (Please use "" to wrap the value)
702
  mask_color: "rgba(0,0,0,0.6)"
703 704 705
  # The gap between image and a edge of screen when image is enlarged.
  # (Only `px` unit is supported)
  gap_aside: 20px
706

707 708
# If you are use "photos" attribute in the Front-matter,
#   you can enable this to show images in waterfalls flow.
709
# See: https://github.com/desandro/masonry/
710 711 712 713 714 715
gallery_waterfall:
  enable: false
  col_width: 220px
  gap_x: 10px
  gap_y: 10px

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
716 717 718 719
# Lazy load the images of post.
# See: https://github.com/tuupola/lazyload
lazyload:
  enable: false
720
  # Optional values: gif | block
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
721 722
  placeholder: gif

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
# 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
740 741 742
  # ! --------------------------------------------------
  # ! If you don't know the following, please ignore it.
  # ! --------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
743
  ignores:
744 745 746 747 748
    - /\/api\/?/
    - uri => uri.includes('.xml')
    - uri => uri.includes('.zip')
    - (uri, el) => el.hasAttribute('nofollow')
    - (uri, el) => el.hasAttribute('noprefetch')
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
749

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
750 751 752
# Pjax
# See: https://github.com/MoOx/pjax/
pjax:
753
  enable: false
754 755
  # When switching pages, scroll to the bottom of the top image.
  avoid_banner: false
756 757 758
  # ! --------------------------------------------------
  # ! If you don't know the following, please ignore it.
  # ! --------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
759 760 761 762 763 764
  # Please see: https://github.com/MoOx/pjax/#options
  elements:
  selectors:
  switches:
  switchesOptions:
  history: true
765
  # If you enable this, you must set `avoid_banner: false` firstly.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
766 767 768 769 770 771 772
  scrollTo: false
  scrollRestoration: false
  cacheBust: false
  debug: false
  currentUrlFullReload: false
  timeout: 0

773 774 775
# Google AdSense
google_adsense:
  enable: false
776
  client:
777
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
778

779 780 781 782 783
# 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
784 785
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-external-link-alt
786
    # (Please use "" to wrap the value)
787
    color: "#aaa"
788

789 790 791
# The shortcuts of the site.
shortcuts:
  # Switch to the prev / next post by key.
792 793
  # `Ctrl + ←` is the shortcuts to prev post.
  # `Ctrl + →` is the shortcuts to next post.
794 795 796
  switch_post:
    enable: false

797
# Tag cloud
798
# If not used, comment it or ignore it.
799
tag_cloud:
800
  # (Please use "" to wrap the value)
801 802
  start_color: "#a4d8fa"
  end_color: "#49b1f5"
803
  # Size for tag.
804 805
  min_size: 16
  max_size: 26
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
806
  # Maximum number of tags displayed. Change it if you have more than 200 tags.
807
  max_amount: 200
808

809 810 811
# Eliminate the old version of IE browser (IE6~11).
# See: https://support.dmeng.net/upgrade-your-browser.html
kill_old_ie:
812
  enable: false
813 814 815 816 817 818
  # The URL of warning page (Please use "" to wrap the value).
  # ! ----------------------------------------------------------------
  # ! Usually you don't need to set this option, just use the default.
  # ! ----------------------------------------------------------------
  warning_url: https://support.dmeng.net/upgrade-your-browser.html

819
# Assets
820
# In theme directory (source/css)
821
css: css
822
# In theme directory (source/js)
823
js: js
824
# In theme directory (source/images)
825
images: images
826

827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847
# 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
  valine_visitor: fas fa-eye
848
  post_heading: fas fa-link
849 850 851 852 853
  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
854 855
  google: fab fa-google
  # bing: fab fa-bing # not exist
856

857
# Set a CDN address for the vendor you want to customize.
858
# ! -------------------------------------------------------------------
859
# ! Do not edit the follow configs, unless you know what you are doing.
860
# ! -------------------------------------------------------------------
861
cdn:
862
  # Using version: 5.12.1
863 864
  # See: https://fontawesome.com/
  # Example:
865 866
  # 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
867
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
868
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css
869
  fontawesome:
870 871 872 873 874

  # 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
875 876
  jquery:

877 878 879 880 881 882 883
  # 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
884 885
  velocity:
  velocity_ui:
886 887 888 889 890 891 892 893

  # 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
894 895 896
  gitalk_js:
  gitalk_css:
  gitalk_md5:
897 898 899 900 901 902 903

  # 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
904 905
  valine:
  leancloud_storage:
906

M
MH 已提交
907 908 909 910 911
  # minivaline
  # See: https://github.com/MiniValine/MiniValine
  # Example:
  # minivaline: //cdn.jsdelivr.net/npm/minivaline/dist/MiniValine.min.js
  minivaline:
912 913 914 915 916 917

  # busuanzi
  # Using version: latest
  # See: https://busuanzi.ibruce.info/
  # Example:
  # busuanzi: //cdn.jsdelivr.net/gh/sukkaw/busuanzi@latest/bsz.pure.mini.js
918 919
  busuanzi:

920 921 922 923 924
  # 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
925 926
  instantsearch_js:
  instantsearch_css:
927 928 929 930 931

  # Using version: latest
  # See: https://github.com/hustcc/ribbon.js
  # Example:
  # canvas_ribbon: //cdn.jsdelivr.net/npm/ribbon.js@latest/dist/ribbon.min.js
932 933
  canvas_ribbon:

934 935 936
  # Using version: latest
  # See: https://github.com/hustcc/canvas-nest.js
  # Example:
937
  # canvas_nest: //cdn.jsdelivr.net/npm/canvas-nest.js@1.0.1/dist/canvas-nest.min.js
938
  canvas_nest:
939 940 941 942 943 944

  # 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
945 946
  fancybox_js:
  fancybox_css:
947 948 949 950 951

  # Using version: 4.2.2
  # See: https://masonry.desandro.com/
  # Example:
  # masonry: //cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js
952
  masonry:
953 954 955 956 957

  # Using version: 2.0.0-rc.2
  # See: https://github.com/tuupola/lazyload/
  # Example:
  # lazyload: //cdn.jsdelivr.net/npm/lazyload@2.0.0-rc.2/lazyload.min.js
958
  lazyload:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
959

960
  # Using version: latest
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
961 962 963 964
  # See: https://github.com/GoogleChromeLabs/quicklink/
  # Example:
  # quicklink: //cdn.jsdelivr.net/npm/quicklink@latest/dist/quicklink.umd.js
  quicklink:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
965 966 967 968 969 970

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
971 972 973 974 975 976 977 978

  # Using version: 1.0.16
  # See: https://github.com/overtrue/share.js
  # Example:
  # share_js: //cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/js/social-share.min.js
  # share_css: //cdn.jsdelivr.net/npm/social-share.js@1.0.16/dist/css/share.min.css
  share_js:
  share_css: