_config.yml 28.6 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: true
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
275
  # Optional value: 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 295
    # Mouse hover animation
    # Optional value: 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
453 454
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
  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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
512 513
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
514 515
livere:
  enable: false
516
  uid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
517

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
518 519 520 521
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
522
  shortname:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
523 524
  count: true

525 526 527 528 529 530 531 532 533
# Utterances
# See: https://utteranc.es/
utterances:
  enable: false
  # Github username.
  owner:
  # Github repository.
  repo:
  # Choose the mapping between blog posts and GitHub issues.
534
  # Optional values: pathname | url | title | og:title
535
  mapping: title
536 537 538 539
  # 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.
540
  # Optional values: github-light | github-dark | github-dark-orange | icy-dark | dark-blue | photon-dark
541 542 543 544 545 546
  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(文一) 已提交
547
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
548 549
# Statistics and Analytics config
# ---------------------------------------------------------------
550

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
551 552
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
553
busuanzi:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
554
  enable: false
555 556 557 558 559
  # Only show by icon.
  icon_only: false
  # Number of unique visitor to the entire site.
  site_uv:
    enable: true
560 561
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: fas fa-user
562 563 564
  # Number of page view to the entire site.
  site_pv:
    enable: true
565
    icon: fas fa-eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
566 567
  # Number of page view to a post.
  post_pv:
568
    enable: true
569
    icon: fas fa-eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
570

571 572 573 574 575 576 577 578 579 580 581 582
# 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(文一) 已提交
583 584 585 586 587
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------

# Algolia Search
588
# Dependency: https://github.com/algolia/instantsearch.js/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
589
algolia_search:
590
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
591 592 593 594 595 596 597
  hits:
    # Number of search results displayed per page.
    per_page: 10
  labels:
    # Whether to show stats of search.
    show_stats: true

598 599 600
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
601
  enable: false
602

603 604 605 606 607
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

# Canvas-ribbon
608
# Dependency: https://github.com/hustcc/ribbon.js
609 610 611
canvas_ribbon:
  enable: false
  # The width of the ribbon.
612
  size: 120
613 614 615 616 617 618
  # The transparency of the ribbon.
  alpha: 0.6
  # The display level of the ribbon.
  zIndex: -1

# Canvas-nest
619
# Dependency: https://github.com/hustcc/canvas-nest.js
620 621
canvas_nest:
  enable: false
622
  # Whether to show on mobile.
623
  onmobile: true
624 625
  # Color of lines.
  # RGB values, use `,` to separate.
626
  color: "0,0,0"
627
  # The opacity of lines (value: 0 ~ 1)
628
  opacity: 0.6
629
  # The number of lines.
630
  count: 99
631
  # `z-index` property of the background.
632 633
  zIndex: -1

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
634 635 636 637
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
638
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
639 640 641 642 643

  # Only the page which has `math: true` in Front-matter will render.
  # If true, it will load mathjax / katex srcipt EVERY PAGE.
  per_page: false

644
  # value: mathjax / katex (suggest: katex)
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
645 646 647
  engine: katex

  # See: https://github.com/mathjax/MathJax/
648
  # hexo-renderer-kramed (or hexo-renderer-markdown-it-plus or hexo-renderer-pandoc) needed to full MathJax support.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
649 650 651 652 653 654 655
  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
656

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
657 658 659 660 661 662 663 664 665 666
  # hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) needed to full Katex support.
  katex:
    cdn: https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css

    copy_tex:
      # See: https://github.com/KaTeX/KaTeX/tree/master/contrib/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

667
# ---------------------------------------------------------------
668 669
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
670

671 672 673 674
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

675 676 677 678
# Whether to enlarge the image when clicked.
zoom_image:
  enable: true
  # The color of mask.
679
  # (Please use "" to wrap the value)
680
  mask_color: "rgba(0,0,0,0.6)"
681 682 683
  # The gap between image and a edge of screen when image is enlarged.
  # (Only `px` unit is supported)
  gap_aside: 20px
684

685 686
# If you are use "photos" attribute in the Front-matter,
#   you can enable this to show images in waterfalls flow.
687
# See: https://github.com/desandro/masonry/
688 689 690 691 692 693
gallery_waterfall:
  enable: false
  col_width: 220px
  gap_x: 10px
  gap_y: 10px

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
694 695 696 697
# Lazy load the images of post.
# See: https://github.com/tuupola/lazyload
lazyload:
  enable: false
698
  # Optional values: gif | block
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
699 700
  placeholder: gif

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717
# 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
718 719 720
  # ! --------------------------------------------------
  # ! If you don't know the following, please ignore it.
  # ! --------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
721
  ignores:
722 723 724 725 726
    - /\/api\/?/
    - uri => uri.includes('.xml')
    - uri => uri.includes('.zip')
    - (uri, el) => el.hasAttribute('nofollow')
    - (uri, el) => el.hasAttribute('noprefetch')
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
727

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
728 729 730
# Pjax
# See: https://github.com/MoOx/pjax/
pjax:
731
  enable: false
732 733
  # Scrolling to the second screen when the page loaded.
  scrollTo2screen: false
734 735 736
  # ! --------------------------------------------------
  # ! If you don't know the following, please ignore it.
  # ! --------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
737 738 739 740 741 742
  # Please see: https://github.com/MoOx/pjax/#options
  elements:
  selectors:
  switches:
  switchesOptions:
  history: true
743
  # If you enable this, you must set `scrollTo2screen: false` firstly.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
744 745 746 747 748 749 750
  scrollTo: false
  scrollRestoration: false
  cacheBust: false
  debug: false
  currentUrlFullReload: false
  timeout: 0

751 752 753 754
# Google AdSense
google_adsense:
  enable: false
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
755
  client:
756 757
  enable_page_level_ads: true

758 759 760 761 762
# 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
763 764
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-external-link-alt
765
    # (Please use "" to wrap the value)
766
    color: "#aaa"
767

768 769 770
# The shortcuts of the site.
shortcuts:
  # Switch to the prev / next post by key.
771 772
  # `Ctrl + ←` is the shortcuts to prev post.
  # `Ctrl + →` is the shortcuts to next post.
773 774 775
  switch_post:
    enable: false

776
# Tag cloud
777
# If not used, comment it or ignore it.
778
tag_cloud:
779
  # (Please use "" to wrap the value)
780 781
  start_color: "#a4d8fa"
  end_color: "#49b1f5"
782
  # Size for tag.
783 784
  min_size: 16
  max_size: 26
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
785
  # Maximum number of tags displayed. Change it if you have more than 200 tags.
786
  max_amount: 200
787

788
# Assets
789
# In theme directory (source/css)
790
css: css
791
# In theme directory (source/js)
792
js: js
793
# In theme directory (source/images)
794
images: images
795

796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816
# 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
817
  post_heading: fas fa-link
818 819 820 821 822
  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
823

824
# Set a CDN address for the vendor you want to customize.
825
# ! -------------------------------------------------------------------
826
# ! Do not edit the follow configs, unless you know what you are doing.
827
# ! -------------------------------------------------------------------
828
cdn:
829
  # Using version: 5.12.1
830 831
  # See: https://fontawesome.com/
  # Example:
832 833
  # 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
834
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
835
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css
836
  fontawesome:
837 838 839 840 841

  # 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
842 843
  jquery:

844 845 846 847 848 849 850
  # 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
851 852
  velocity:
  velocity_ui:
853 854 855 856 857 858 859 860

  # 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
861 862 863
  gitalk_js:
  gitalk_css:
  gitalk_md5:
864 865 866 867 868 869 870

  # 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
871 872
  valine:
  leancloud_storage:
873 874 875 876 877 878

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

881 882 883 884 885
  # 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
886 887
  instantsearch_js:
  instantsearch_css:
888 889 890 891 892

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

895 896 897 898
  # Using version: latest
  # See: https://github.com/hustcc/canvas-nest.js
  # Example:
  # canvas_nest: //cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@latest/canvas-nest.min.js
899
  canvas_nest:
900 901 902 903 904 905

  # 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
906 907
  fancybox_js:
  fancybox_css:
908 909 910 911 912

  # 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
913
  masonry:
914 915 916 917 918

  # 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
919
  lazyload:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
920

921
  # Using version: latest
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
922 923 924 925
  # See: https://github.com/GoogleChromeLabs/quicklink/
  # Example:
  # quicklink: //cdn.jsdelivr.net/npm/quicklink@latest/dist/quicklink.umd.js
  quicklink:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
926 927 928 929 930 931

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
932 933 934 935 936 937 938 939

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