_config.yml 26.2 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 38 39 40 41 42 43 44 45
# ---------------------------------------------------------------
# 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
46 47 48
  # categories: /categories/ || th
  # tags: /tags/ || tags
  # about: /about/ || user
49
  # xxx: /xxx/ || xxx
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
50 51 52 53 54 55 56 57 58
  # 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
59 60 61 62 63 64 65

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

66
# ---------------------------------------------------------------
67
# Site config
68
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
69

70
favicon:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
71 72
  small: /images/icons/favicon-16x16.png
  medium: /images/icons/favicon-32x32.png
73 74 75
  # ! -----------------------------------------------------
  # ! If you don't understand, please ignore the following.
  # ! -----------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
76 77 78 79 80
  # 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(文一) 已提交
81
# See: https://github.com/lavas-project/hexo-pwa/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
82 83 84
pwa:
  enable: false
  manifest: /manifest.json
85
  theme_color: "#54bcff"
86

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

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

112
header:
113
  # Header height (Support for all types of CSS size units).
114 115 116 117 118
  height: 80%
  # Header navigation bar height (Support for all types of CSS size units).
  nav_height: 50px
  # Background image in the header.
  bg_image:
119
    enable: false
120
    # In theme directory (source/images): /images/avatar.png
121 122
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
123
    url:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
124
  # Mask effect of the background image.
125
  mask:
126
    enable: false
127 128
    # Opacity of mask (value: 0 ~ 1).
    opacity: 0.5
129 130 131 132
  # The icon that prompt to scroll down.
  scroll_down_icon:
    enable: false
    animation: true
133

134 135 136
# Creative Commons 4.0 International License.
creative_commons:
  enable: true
137 138
  # 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/
139 140 141
  license: BY-NC-SA
  # Show the CC license in the sidebar.
  sidebar: true
142
  # Show the CC license at the post bottom.
143 144 145
  post: true
  # You can set a language value if you prefer a translated version of CC license.
  # Valid values of language: en, zh, etc.
146
  # If not set, "en" will be used by default.
147
  language:
148 149 150 151 152

# Back to top button.
back2top:
  enable: true
  icon:
153
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
154 155 156 157
    # `rocket` is recommended.
    name: rocket
    # Rotation Angle of icon.
    rotate: -45deg
158
    # Please use quote to wrap value (All CSS size units are supported).
159
    color: "#49b1f5"
160
    # Colour when the mouse hovers it.
161
    hover_color: "#fc6423"
162

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

# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
220

221
sidebar:
222
  enable: true
223
  # Sidebar position, available values: left | right.
224
  position: right
225
  # The distance from the top of the page when the sidebar is fixed (Only px units are supported).
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
226
  offsetTop: 30px
227
  # Horizon line.
228
  horizon_line: false
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
229

230 231
author:
  enable: true
232
  # Avatar in the sidebar.
233
  avatar:
234
    # In theme directory (source/images): /images/avatar.png
235
    # In site directory (source/uploads): /uploads/avatar.png
236
    # You can also use a link of image.
237
    url: /images/avatar.png
238
    # If true, the avatar would be displayed in a circle.
239
    rounded: false
240
    # The value should be chosen from 0 to 1.
241
    opacity: 1
242
    # Mouse hover animation, available value: turn | shake.
243
    animation: turn
244 245
  # Your favorite motto.
  motto: hello world
246

247
# Social links.
248 249
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon.
250
# See: https://fontawesome.com/v4.7.0/icons/
251
# If you can`t find a suitable icon, you can choose to display the original
252
#   text by adding the "origin" prefix (e.g. origin:sf, then "sf" will be show).
253 254 255
social:
  github: https://github.com/ || github
  google: https://plus.google.com/ || google
256 257 258 259 260 261 262 263
  # 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
264
  # xxx: xxx || (origin:)xxx
265

266
social_setting:
267
  enable: false
268
  # Only show by icon.
269
  icon_only: true
270

271
# Table Of Contents in the Sidebar.
272 273 274 275
toc:
  enable: true
  # Automatically add list number to toc.
  number: true
276
  # If true, all words will be placed on the next lines when they overflow.
277
  wrap: true
278 279 280 281
  # 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.
282
  # e.g. value: 3, will use h1~3 to generated toc.
283
  max_depth: 4
284

285
# Subscribe of email and rss.
286
feed:
287
  enable: false
288
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
289
  email:
290 291 292 293
  # 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.
294
  rss:
295

296
# The reading progress of post.
297 298
reading_progress:
  enable: true
299
  # Please use the quote to wrap value (All CSS size units are supported).
300
  color: "#fc6423"
301
  # Support for all types of CSS size units.
302
  height: 1px
303

304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
# ---------------------------------------------------------------
# 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:
329
  enable: false
330 331 332 333
  # Fill in your QR Code for collecting money.
  alipay:
  wechat:

334 335 336
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
337

338
# The meta-information at the front of the post.
339
post_meta:
340
  # Only show by icon.
341 342
  icon_only: false
  # Show create information.
343 344 345 346
  created:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: calendar-o
347
  # Show update information.
348 349 350 351 352
  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.
353
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
354
  # Don't enable this before install dependencies
355
  #   by `npm install hexo-wordcount --save` in hexo directory.
356 357 358 359 360 361 362 363 364 365 366
  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.
367
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
368
  # Don't enable this before install dependencies
369
  #   by `npm install hexo-wordcount --save` in hexo directory.
370 371 372 373
  word_count:
    enable: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: file-word-o
374

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
375 376 377 378 379 380
# The article list on the homepage or archives page.
post_list:
  # Whether to paginate.
  paginate:
    home: true
    archives: false
381 382
  # Whether to show the cover image of post.
  cover_image:
383
    home: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
384 385 386 387 388 389 390 391 392 393

# 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
394 395
  # Article sharing
  share:
396
    enable: false
397 398 399 400
    # 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 已提交
401

402 403 404 405 406
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

407
# Stick post to the top.
408 409 410
# 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.
411
stick_top:
412
  # Position of icon, available values: left | right.
413 414 415 416 417 418
  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).
419
  color: "#999"
420

421
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
422 423 424
# Comment config
# ---------------------------------------------------------------

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
425
# Gittalk
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
426
# See: https://github.com/gitalk/gitalk/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
427 428 429
gitalk:
  enable: false
  # Github username.
430
  owner:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
431
  # Github repository.
432
  repo:
433
  # Github Application Client ID.
434
  client_id:
435
  # Github Application Client Secret.
436
  client_secret:
437
  # GitHub repo owner and collaborators, only these guys can initialize github issues.
438
  admin:
439
  # Facebook-like distraction free mode.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
440
  distraction_free_mode: false
441
  # Gitalk's display language depends on user's browser or system environment.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
442
  # If you want everyone visiting your site to see a uniform language,
443 444
  #   you can set a force language value.
  # Available values: en, zh-CN, es-ES, fr, ru, zh-TW.
445
  language:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
446

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
447 448 449 450 451
# Valine
# See: https://valine.js.org/quickstart.html
valine:
  enable: false
  # Your leancloud application appid.
452
  appid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
453
  # Your leancloud application appkey.
454
  appkey:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471
  # 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.
472
  language:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
473

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
474 475
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
476 477
livere:
  enable: false
478
  uid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
479

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
480 481 482 483
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
484
  shortname:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
485 486
  count: true

487 488 489 490 491 492 493 494 495 496
# 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
497
  mapping: title
498 499 500 501 502 503 504 505 506 507 508
  # 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(文一) 已提交
509
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
510 511
# Statistics and Analytics config
# ---------------------------------------------------------------
512

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
513 514
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
515
busuanzi:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
516
  enable: false
517 518 519 520 521 522 523 524 525 526 527
  # 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(文一) 已提交
528 529
  # Number of page view to a post.
  post_pv:
530
    enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
531 532
    icon: eye

533 534 535 536 537 538 539 540 541 542 543 544
# 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(文一) 已提交
545 546 547 548 549 550 551
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------

# Algolia Search
# Dependencies: https://github.com/algolia/instantsearch.js/
algolia_search:
552
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
553 554 555 556 557 558 559
  hits:
    # Number of search results displayed per page.
    per_page: 10
  labels:
    # Whether to show stats of search.
    show_stats: true

560 561 562
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
563
  enable: false
564

565 566 567 568 569 570 571 572 573
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

# Canvas-ribbon
# Dependencies: https://github.com/hustcc/ribbon.js
canvas_ribbon:
  enable: false
  # The width of the ribbon.
574
  size: 120
575 576 577 578 579 580 581 582 583 584 585
  # 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
586
  # RGB values, use "," to separate
587
  # Color for lines
588
  color: "0,0,0"
589 590 591 592 593 594 595
  # 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(文一) 已提交
596 597 598 599
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
600
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
601 602 603 604 605

  # 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

606
  # value: mathjax / katex (suggest: katex)
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
607 608 609
  engine: katex

  # See: https://github.com/mathjax/MathJax/
610
  # hexo-renderer-kramed (or hexo-renderer-markdown-it-plus or hexo-renderer-pandoc) needed to full MathJax support.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
611 612 613 614 615 616 617
  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
618

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
619 620 621 622 623 624 625 626 627 628
  # 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

629
# ---------------------------------------------------------------
630 631
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
632

633 634 635 636
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

637 638 639 640 641
# 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).
642
  mask_color: "rgba(0,0,0,0.6)"
643

644 645
# If you are use "photos" attribute in the Front-matter,
#   you can enable this to show images in waterfalls flow.
646
# See: https://github.com/desandro/masonry/
647 648 649 650 651 652
gallery_waterfall:
  enable: false
  col_width: 220px
  gap_x: 10px
  gap_y: 10px

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
653 654 655 656 657 658 659
# 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(文一) 已提交
660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677
# 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
  # ! ---------------------------------------------------------------
678
  # ! If you don't understand, please ignore the following.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
679 680
  # ! ---------------------------------------------------------------
  ignores:
681 682 683 684 685
    - /\/api\/?/
    - uri => uri.includes('.xml')
    - uri => uri.includes('.zip')
    - (uri, el) => el.hasAttribute('nofollow')
    - (uri, el) => el.hasAttribute('noprefetch')
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
686

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
687 688 689
# Pjax
# See: https://github.com/MoOx/pjax/
pjax:
690
  enable: false
691 692
  # Scrolling to the second screen when the page loaded.
  scrollTo2screen: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
693 694 695 696 697 698 699 700 701
  # ! -----------------------------------------------------
  # ! If you don't understand, please ignore the following.
  # ! -----------------------------------------------------
  # Please see: https://github.com/MoOx/pjax/#options
  elements:
  selectors:
  switches:
  switchesOptions:
  history: true
702
  # If you enable this, you must set `scrollTo2screen: false` firstly.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
703 704 705 706 707 708 709
  scrollTo: false
  scrollRestoration: false
  cacheBust: false
  debug: false
  currentUrlFullReload: false
  timeout: 0

710 711 712 713
# Google AdSense
google_adsense:
  enable: false
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
714
  client:
715 716
  enable_page_level_ads: true

717 718 719 720 721 722 723 724 725
# 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).
726
    color: "#aaa"
727

728 729 730 731 732 733 734 735
# 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

736
# Tag cloud
737
# If not used, comment it or ignore it.
738 739
tag_cloud:
  # Color for tag (please use the quote to wrap value, only support HEX).
740 741
  start_color: "#a4d8fa"
  end_color: "#49b1f5"
742
  # Size for tag.
743 744
  min_size: 16
  max_size: 26
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
745
  # Maximum number of tags displayed. Change it if you have more than 200 tags.
746
  max_amount: 200
747

748
# Assets
749
# In theme directory (source/css).
750
css: css
751
# In theme directory (source/js).
752
js: js
753 754
# In theme directory (source/images).
images: images
755

756 757 758 759 760
# 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

761
# Set a CDN address for the vendor you want to customize.
762 763 764 765
# ! -----------------------------------------------------
# ! Do not edit the follow configs.
# ! Unless you know what you are doing.
# ! -----------------------------------------------------
766
cdn:
767 768 769 770
  # Using version: 4.7.0
  # See: https://fontawesome.com/
  # Example:
  # fontawesome: //cdn.jsdelivr.net/npm/font-awesome@4/css/font-awesome.min.css
771
  # fontawesome: //cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.10.2/css/all.min.css
772
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
773
  # fontawesome: //cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.2/css/all.min.css
774
  fontawesome:
775 776 777 778 779

  # 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
780 781
  jquery:

782 783 784 785 786 787 788
  # 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
789 790
  velocity:
  velocity_ui:
791 792 793 794 795 796 797 798

  # 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
799 800 801
  gitalk_js:
  gitalk_css:
  gitalk_md5:
802 803 804 805 806 807 808

  # 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
809 810
  valine:
  leancloud_storage:
811 812 813 814 815 816

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

819 820 821 822 823
  # 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
824 825
  instantsearch_js:
  instantsearch_css:
826 827 828 829 830

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

833 834 835 836
  # 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
837
  canvas_nest:
838 839 840 841 842 843

  # 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
844 845
  fancybox_js:
  fancybox_css:
846 847 848 849 850

  # 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
851
  masonry:
852 853 854 855 856

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

859
  # Using version: latest
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
860 861 862 863
  # See: https://github.com/GoogleChromeLabs/quicklink/
  # Example:
  # quicklink: //cdn.jsdelivr.net/npm/quicklink@latest/dist/quicklink.umd.js
  quicklink:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
864 865 866 867 868 869

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
870 871 872 873 874 875 876 877

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