_config.yml 27.0 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 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

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

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

34 35 36 37
# Sougou Webmaster tools verification setting
# see http://zhanzhang.sogou.com/
sougou_site_verification:

38 39 40 41 42 43 44 45 46 47 48 49
# ---------------------------------------------------------------
# Menu config
# ---------------------------------------------------------------

# Header navigation menu.
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon.
# See: https://fontawesome.com/v4.7.0/icons/
# If not set, "question-circle-o" icon will be shown.
menu:
  home: / || home
  archives: /archives/ || folder-open
50 51 52
  # categories: /categories/ || th
  # tags: /tags/ || tags
  # about: /about/ || user
53
  # xxx: /xxx/ || xxx
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
54 55 56 57 58 59 60 61 62
  # You can add a secondary menu like follow.
  # xxx: javascript:; || xxx

# Secondary menu.
submenu:
  # Add item of secondary menu in here.
  # xxx:
  #   xx1: /xxx/ || xxx
  #   xx2: /xxx/ || xxx
63 64 65 66 67 68 69

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

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

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

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

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

105 106
# The layout for sidebar and content of site.
layout:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
107
  # The width of the content area in website.
108
  content: 768px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
109
  # The width of the sidebar in website.
110
  sidebar: 300px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
111
  # The width between the content and the sidebar.
112
  content_sidebar_gap: 30px
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
113
  # The width between the main of website and the sides of page.
114 115
  main_side_gap: 20px

116
header:
117 118 119 120 121 122
  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)
123 124 125
  height: 80%
  # Background image in the header.
  bg_image:
126
    enable: false
127
    # In theme directory (source/images): /images/avatar.png
128 129
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
130
    url:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
131
  # Mask effect of the background image.
132
  mask:
133
    enable: false
134 135
    # Opacity of mask (value: 0 ~ 1).
    opacity: 0.5
136 137 138 139 140
  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"
141 142 143 144
  # The icon that prompt to scroll down.
  scroll_down_icon:
    enable: false
    animation: true
145

146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162
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:
    enable: false
    # Opacity of mask (value: 0 ~ 1).
    opacity: 0.5
163

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

218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
# 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:
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    # `rocket` is recommended.
    name: rocket
    # 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"

247 248 249
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
250

251
sidebar:
252
  enable: true
253
  # Sidebar position, available values: left | right.
254
  position: right
255
  # The distance from the top of the page when the sidebar is fixed (Only px units are supported).
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
256
  offsetTop: 30px
257
  # Horizon line.
258
  horizon_line: false
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
259

260 261
author:
  enable: true
262
  # Avatar in the sidebar.
263
  avatar:
264
    # In theme directory (source/images): /images/avatar.png
265
    # In site directory (source/uploads): /uploads/avatar.png
266
    # You can also use a link of image.
267
    url: /images/avatar.png
268
    # If true, the avatar would be displayed in a circle.
269
    rounded: false
270
    # The value should be chosen from 0 to 1.
271
    opacity: 1
272
    # Mouse hover animation, available value: turn | shake.
273
    animation: turn
274 275
  # Your favorite motto.
  motto: hello world
276

277
# Social links.
278 279
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon.
280
# See: https://fontawesome.com/v4.7.0/icons/
281
# If you can`t find a suitable icon, you can choose to display the original
282
#   text by adding the "origin" prefix (e.g. origin:sf, then "sf" will be show).
283 284 285
social:
  github: https://github.com/ || github
  google: https://plus.google.com/ || google
286 287 288 289 290 291 292 293
  # twitter: https://twitter.com/ || twitter
  # youtube: https://youtube.com/ || youtube
  # segmentfault: https://segmentfault.com/ || origin:sf
  # weibo: https://weibo.com/ || weibo
  # zhihu: https://www.zhihu.com/ || origin:知
  # wechat: yournumber || weixin
  # telegram: yournumber || telegram
  # qq: yournumber || qq
294
  # xxx: xxx || (origin:)xxx
295

296
social_setting:
297
  enable: false
298
  # Only show by icon.
299
  icon_only: true
300

301
# Table Of Contents in the Sidebar.
302 303 304 305
toc:
  enable: true
  # Automatically add list number to toc.
  number: true
306
  # If true, all words will be placed on the next lines when they overflow.
307
  wrap: true
308 309 310 311
  # If true, the toc of post will always be displayed, rather than the activated part of it.
  expand_all: false
  # Maximum heading depth of generated toc. You can set it in the
  #   post through `toc_max_depth` in Front-matter.
312
  # e.g. value: 3, will use h1~3 to generated toc.
313
  max_depth: 4
314

315
# Subscribe of email and rss.
316
feed:
317
  enable: false
318
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
319
  email:
320 321 322 323
  # Enter the rss address of you set (e.g. /atom.xml).
  # Dependencies: https://github.com/hexojs/hexo-generator-feed/
  # Don't enable this before install dependencies
  #   by `npm install hexo-generator-feed --save` in hexo directory.
324
  rss:
325

326
# The reading progress of post.
327 328
reading_progress:
  enable: true
329
  # Please use the quote to wrap value (All CSS size units are supported).
330
  color: "#fc6423"
331
  # Support for all types of CSS size units.
332
  height: 1px
333

334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358
# ---------------------------------------------------------------
# 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:
359
  enable: false
360 361 362 363
  # Fill in your QR Code for collecting money.
  alipay:
  wechat:

364 365 366
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
367

368
# The meta-information at the front of the post.
369
post_meta:
370
  # Only show by icon.
371 372
  icon_only: false
  # Show create information.
373 374 375 376
  created:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: calendar-o
377
  # Show update information.
378 379 380 381 382
  updated:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: calendar-check-o
  # Count the reading time of the post.
383
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
384
  # Don't enable this before install dependencies
385
  #   by `npm install hexo-wordcount --save` in hexo directory.
386 387 388 389 390 391 392 393 394 395 396
  reading_time:
    enable: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: clock-o
    # Set reading speed to estimate reading time.
    speed:
      # Reading speed of zh-CN.
      zh: 200
      # Reading speed of en-US.
      en: 80
  # Count the words of the post.
397
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
398
  # Don't enable this before install dependencies
399
  #   by `npm install hexo-wordcount --save` in hexo directory.
400 401 402 403
  word_count:
    enable: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: file-word-o
404

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
405 406 407 408 409 410
# The article list on the homepage or archives page.
post_list:
  # Whether to paginate.
  paginate:
    home: true
    archives: false
411 412
  # Whether to show the cover image of post.
  cover_image:
413
    home: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
414 415 416 417 418 419 420 421 422 423

# The widget of post.
post_widget:
  # Show tags at the bottom of the post.
  tags: true
  # Show "post end" at the bottom of the post.
  end_text:
    enable: true
    # Show the horizon line before the text of the end.
    horizon_line: true
424 425
  # Article sharing
  share:
426
    enable: false
427 428 429 430
    # 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 已提交
431

432 433 434 435 436
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

437
# Stick post to the top.
438 439 440
# Dependencies: https://github.com/netcan/hexo-generator-index-pin-top/
# Don't enable this before install dependencies
#   by `npm install hexo-generator-index-pin-top --save` in hexo directory.
441
stick_top:
442
  # Position of icon, available values: left | right.
443 444 445 446 447 448
  position: right
  # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
  icon: thumb-tack
  # Rotation Angle of icon.
  rotate: 45deg
  # Please use the quote to wrap value (All CSS size units are supported).
449
  color: "#999"
450

451
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
452 453 454
# Comment config
# ---------------------------------------------------------------

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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
477 478 479 480 481
# Valine
# See: https://valine.js.org/quickstart.html
valine:
  enable: false
  # Your leancloud application appid.
482
  appid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
483
  # Your leancloud application appkey.
484
  appkey:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501
  # 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.
502
  language:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
503

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
504 505
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
506 507
livere:
  enable: false
508
  uid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
509

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
510 511 512 513
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
514
  shortname:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
515 516
  count: true

517 518 519 520 521 522 523 524 525 526
# 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
527
  mapping: title
528 529 530 531 532 533 534 535 536 537 538
  # 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(文一) 已提交
539
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
540 541
# Statistics and Analytics config
# ---------------------------------------------------------------
542

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
543 544
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
545
busuanzi:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
546
  enable: false
547 548 549 550 551 552 553 554 555 556 557
  # Only show by icon.
  icon_only: false
  # Number of unique visitor to the entire site.
  site_uv:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: user
  # Number of page view to the entire site.
  site_pv:
    enable: true
    icon: eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
558 559
  # Number of page view to a post.
  post_pv:
560
    enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
561 562
    icon: eye

563 564 565 566 567 568 569 570 571 572 573 574
# 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(文一) 已提交
575 576 577 578 579 580 581
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------

# Algolia Search
# Dependencies: https://github.com/algolia/instantsearch.js/
algolia_search:
582
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
583 584 585 586 587 588 589
  hits:
    # Number of search results displayed per page.
    per_page: 10
  labels:
    # Whether to show stats of search.
    show_stats: true

590 591 592
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
593
  enable: false
594

595 596 597 598 599 600 601 602 603
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

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

# Canvas-nest
# Dependencies: https://github.com/hustcc/canvas-nest.js
canvas_nest:
  enable: false
  # Display on mobile or not
  onmobile: true
616
  # RGB values, use "," to separate
617
  # Color for lines
618
  color: "0,0,0"
619 620 621 622 623 624 625
  # 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(文一) 已提交
626 627 628 629
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
630
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
631 632 633 634 635

  # 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

636
  # value: mathjax / katex (suggest: katex)
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
637 638 639
  engine: katex

  # See: https://github.com/mathjax/MathJax/
640
  # hexo-renderer-kramed (or hexo-renderer-markdown-it-plus or hexo-renderer-pandoc) needed to full MathJax support.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
641 642 643 644 645 646 647
  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
648

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
649 650 651 652 653 654 655 656 657 658
  # 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

659
# ---------------------------------------------------------------
660 661
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
662

663 664 665 666
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

667 668 669 670 671
# 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).
672
  mask_color: "rgba(0,0,0,0.6)"
673

674 675
# If you are use "photos" attribute in the Front-matter,
#   you can enable this to show images in waterfalls flow.
676
# See: https://github.com/desandro/masonry/
677 678 679 680 681 682
gallery_waterfall:
  enable: false
  col_width: 220px
  gap_x: 10px
  gap_y: 10px

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
683 684 685 686 687 688 689
# 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(文一) 已提交
690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707
# 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
  # ! ---------------------------------------------------------------
708
  # ! If you don't understand, please ignore the following.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
709 710
  # ! ---------------------------------------------------------------
  ignores:
711 712 713 714 715
    - /\/api\/?/
    - uri => uri.includes('.xml')
    - uri => uri.includes('.zip')
    - (uri, el) => el.hasAttribute('nofollow')
    - (uri, el) => el.hasAttribute('noprefetch')
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
716

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

740 741 742 743
# Google AdSense
google_adsense:
  enable: false
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
744
  client:
745 746
  enable_page_level_ads: true

747 748 749 750 751 752 753 754 755
# The links with `target="_blank"` attribute.
external_link:
  # Adding an icon make it easier for users to know that this is an external link.
  icon:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    # `external-link` is recommended.
    name: external-link
    # Please use the quote to wrap value (All CSS size units are supported).
756
    color: "#aaa"
757

758 759 760 761 762 763 764 765
# 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

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

778
# Assets
779
# In theme directory (source/css).
780
css: css
781
# In theme directory (source/js).
782
js: js
783 784
# In theme directory (source/images).
images: images
785

786 787 788 789 790
# The common prefix of the FontAwesome icon.
# Using "fa" prefix in version 4.
# Using "fas | far | fal | fad | fab" prefix in version 5.
fa_prefix: fa

791
# Set a CDN address for the vendor you want to customize.
792 793 794 795
# ! -----------------------------------------------------
# ! Do not edit the follow configs.
# ! Unless you know what you are doing.
# ! -----------------------------------------------------
796
cdn:
797 798 799 800
  # Using version: 4.7.0
  # See: https://fontawesome.com/
  # Example:
  # fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4/css/font-awesome.min.css
801
  # fontawesome: //cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.2/css/all.min.css
802
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
803
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css
804
  fontawesome:
805 806 807 808 809

  # 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
810 811
  jquery:

812 813 814 815 816 817 818
  # 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
819 820
  velocity:
  velocity_ui:
821 822 823 824 825 826 827 828

  # 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
829 830 831
  gitalk_js:
  gitalk_css:
  gitalk_md5:
832 833 834 835 836 837 838

  # 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
839 840
  valine:
  leancloud_storage:
841 842 843 844 845 846

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

849 850 851 852 853
  # 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
854 855
  instantsearch_js:
  instantsearch_css:
856 857 858 859 860

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

863 864 865 866
  # 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
867
  canvas_nest:
868 869 870 871 872 873

  # 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
874 875
  fancybox_js:
  fancybox_css:
876 877 878 879 880

  # 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
881
  masonry:
882 883 884 885 886

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

889
  # Using version: latest
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
890 891 892 893
  # See: https://github.com/GoogleChromeLabs/quicklink/
  # Example:
  # quicklink: //cdn.jsdelivr.net/npm/quicklink@latest/dist/quicklink.umd.js
  quicklink:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
894 895 896 897 898 899

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
900 901 902 903 904 905 906 907

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