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

5 6
# Remove unnecessary files after hexo generate. Introduced in Stun v1.4.0
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 49 50
# The menu in the website header.
# 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, visit: https://fontawesome.com/icons
51
menu:
52 53 54 55
  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(文一) 已提交
56
  # You can add a secondary menu like follow.
57
  # xxx1: javascript:; || fa(s|r|l|d|b) fa-xxx
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
58 59 60 61

# Secondary menu.
submenu:
  # Add item of secondary menu in here.
62 63 64
  # 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
65 66 67 68 69 70 71

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

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

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

# PWA
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
87
# See: https://github.com/lavas-project/hexo-pwa/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
88 89 90
pwa:
  enable: false
  manifest: /manifest.json
91
  theme_color: "#54bcff"
92

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

107 108
# The layout for sidebar and content of site.
layout:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
109
  # The width of the content area in website.
110
  content: 768px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
111
  # The width of the sidebar in website.
112
  sidebar: 300px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
113
  # The width between the content and the sidebar.
114
  content_sidebar_gap: 30px
115 116 117 118 119 120 121 122 123
  # The padding property of the main tag.
  # You can set it the same way you set the padding property of CSS.
  main_padding:
    # Screen width in: [768px, Infinity)
    default: 20px
    # Screen width in: [576px, 768px)
    tablet: 15px
    # Screen width in: [0px, 576px)
    mobile: 10px
124

125
header:
126 127 128 129 130 131
  enable: true
  # Whether to show on the some pages.
  show_on:
    # Whether to show on the article page.
    post: true
  # Height of the header. (Support for all types of CSS size units)
132 133 134
  height: 80%
  # Background image in the header.
  bg_image:
135
    enable: false
136
    # In theme directory (source/images): /images/avatar.png
137 138
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
139
    url:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
140
  # Mask effect of the background image.
141
  mask:
142
    enable: false
143 144
    # Opacity of mask (value: 0 ~ 1).
    opacity: 0.5
145 146 147 148 149
  nav:
    # Height of the navigation bar. (Support for all types of CSS size units)
    height: 50px
    # Background color of the navigation bar.
    bg_color: "#333"
150 151 152
  # The icon that prompt to scroll down.
  scroll_down_icon:
    enable: false
153 154
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-angle-down
155
    animation: true
156

157 158 159 160 161 162 163 164 165 166 167 168 169 170
body:
  # Background image in the 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:
171
    enable: true
172
    # Opacity of mask (value: 0 ~ 1).
173 174 175 176 177
    opacity:
      # Opacity of the mask for the body background image by default.
      default: 0.1
      # Opacity of the mask for the body background image in night mode.
      night_mode: 0.6
178

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

231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249
# Creative Commons 4.0 International License.
creative_commons:
  enable: true
  # Available: 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
  # You can set a language value if you prefer a translated version of CC license.
  # Valid values of language: en, zh, etc.
  # If not set, "en" will be used by default.
  language:

# Back to top button.
back2top:
  enable: true
  icon:
250 251
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-rocket
252 253 254 255 256 257 258
    # Rotation Angle of icon.
    rotate: -45deg
    # Please use quote to wrap value (All CSS size units are supported).
    color: "#49b1f5"
    # Colour when the mouse hovers it.
    hover_color: "#fc6423"

259 260 261
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
262

263
sidebar:
264
  enable: true
265
  # Sidebar position, available values: left | right.
266
  position: right
267
  # The distance from the top of the page when the sidebar is fixed (Only px units are supported).
268
  offsetTop: 20px
269
  # Horizon line.
270
  horizon_line: false
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
271

272 273
author:
  enable: true
274
  # Avatar in the sidebar.
275
  avatar:
276
    # In theme directory (source/images): /images/avatar.png
277
    # In site directory (source/uploads): /uploads/avatar.png
278
    # You can also use a link of image.
279
    url: /images/icons/stun-logo.svg
280
    # If true, the avatar would be displayed in a circle.
281
    rounded: false
282
    # The value should be chosen from 0 to 1.
283
    opacity: 1
284
    # Mouse hover animation, available value: turn | shake.
285
    animation: turn
286 287
  # Your favorite motto.
  motto: hello world
288

289
# Social links.
290 291 292 293 294
# 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, visit: 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.
295
social:
296 297 298 299
  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
300
  # segmentfault: https://segmentfault.com/ || origin:sf
301
  # weibo: https://weibo.com/ || fab fa-weibo
302
  # zhihu: https://www.zhihu.com/ || origin:知
303 304 305
  # wechat: yournumber || fab fa-weixin
  # telegram: yournumber || fab fa-telegram
  # qq: yournumber || fab fa-qq
306

307
social_setting:
308
  enable: false
309
  # Only show by icon.
310
  icon_only: true
311

312
# Table Of Contents in the Sidebar.
313 314 315
toc:
  enable: true
  # Automatically add list number to toc.
316
  list_number: true
317
  # If true, all words will be placed on the next lines when they overflow.
318
  wrap: true
319 320
  # If true, the toc of post will always be displayed, rather than the activated part of it.
  expand_all: false
321 322 323 324 325 326
  # 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
327

328
# Subscribe of email and rss.
329
feed:
330
  enable: false
331
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
332
  email:
333
  # Enter the rss address of you set (e.g. /atom.xml).
334 335
  # 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.
336
  rss:
337

338
# The reading progress of post.
339 340
reading_progress:
  enable: true
341
  # Please use the quote to wrap value (All CSS size units are supported).
342
  color: "#fc6423"
343
  # Support for all types of CSS size units.
344
  height: 1px
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
# ---------------------------------------------------------------
# Page config
# ---------------------------------------------------------------

codeblock:
  # The style of code block.
  # values:
  #   - default
  #   - simple
  #   - carbon
  style: default
  # The theme of code highlight.
  # values:
  #   - light
  #   - dark
  #   - ocean
  highlight: light
  # Whether the code to newline.
  word_wrap: false

# Add a line below h1, h2.
heading_line: true

# Reward
reward:
371
  enable: false
372 373 374 375
  # Fill in your QR Code for collecting money.
  alipay:
  wechat:

376 377 378
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
379

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

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

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

442 443 444 445 446
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

447
# Stick post to the top.
448 449
# 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.
450
stick_top:
451
  # Position of icon, available values: left | right.
452
  position: right
453 454
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
  icon: fas fa-thumbtack
455 456 457
  # Rotation Angle of icon.
  rotate: 45deg
  # Please use the quote to wrap value (All CSS size units are supported).
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
  # Available 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 509
  # 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
  # language, available 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 534
# Utterances
# See: https://utteranc.es/
utterances:
  enable: false
  # Github username.
  owner:
  # Github repository.
  repo:
  # Choose the mapping between blog posts and GitHub issues.
  # Available values: pathname | url | title | og:title
535
  mapping: title
536 537 538 539 540 541 542 543 544 545 546
  # 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.
  # Available 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

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 622 623
canvas_nest:
  enable: false
  # Display on mobile or not
  onmobile: true
624
  # RGB values, use "," to separate
625
  # Color for lines
626
  color: "0,0,0"
627 628 629 630 631 632 633
  # The opacity of line: 0 ~ 1
  opacity: 0.6
  # The number of lines
  count: 99
  # z-index property of the background
  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 679
# Whether to enlarge the image when clicked.
zoom_image:
  enable: true
  # The color of mask.
  # Please use the quote to wrap value (All CSS size units are supported).
680
  mask_color: "rgba(0,0,0,0.6)"
681

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

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

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

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

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

755 756 757 758 759
# 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
760 761
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    name: fas fa-external-link-alt
762
    # Please use the quote to wrap value (All CSS size units are supported).
763
    color: "#aaa"
764

765 766 767 768 769 770 771 772
# 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

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

785
# Assets
786
# In theme directory (source/css).
787
css: css
788
# In theme directory (source/js).
789
js: js
790 791
# In theme directory (source/images).
images: images
792

793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813
# 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
814

815
# Set a CDN address for the vendor you want to customize.
816
# ! -----------------------------------------------------
817
# ! Do not edit the follow configs, unless you know what you are doing.
818
# ! -----------------------------------------------------
819
cdn:
820
  # Using version: 5.12.1
821 822
  # See: https://fontawesome.com/
  # Example:
823 824
  # 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
825
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
826
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css
827
  fontawesome:
828 829 830 831 832

  # 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
833 834
  jquery:

835 836 837 838 839 840 841
  # 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
842 843
  velocity:
  velocity_ui:
844 845 846 847 848 849 850 851

  # 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
852 853 854
  gitalk_js:
  gitalk_css:
  gitalk_md5:
855 856 857 858 859 860 861

  # 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
862 863
  valine:
  leancloud_storage:
864 865 866 867 868 869

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

872 873 874 875 876
  # 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
877 878
  instantsearch_js:
  instantsearch_css:
879 880 881 882 883

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

886 887 888 889
  # 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
890
  canvas_nest:
891 892 893 894 895 896

  # 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
897 898
  fancybox_js:
  fancybox_css:
899 900 901 902 903

  # 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
904
  masonry:
905 906 907 908 909

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

912
  # Using version: latest
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
913 914 915 916
  # See: https://github.com/GoogleChromeLabs/quicklink/
  # Example:
  # quicklink: //cdn.jsdelivr.net/npm/quicklink@latest/dist/quicklink.umd.js
  quicklink:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
917 918 919 920 921 922

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
923 924 925 926 927 928 929 930

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