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

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

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

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

# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
224

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

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

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

270
social_setting:
271
  enable: false
272
  # Only show by icon.
273
  icon_only: true
274

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

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

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

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

338 339 340
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
341

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

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

# 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
398 399
  # Article sharing
  share:
400
    enable: false
401 402 403 404
    # 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 已提交
405

406 407 408 409 410
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

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

425
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
426 427 428
# Comment config
# ---------------------------------------------------------------

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

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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
478 479
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
480 481
livere:
  enable: false
482
  uid:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
483

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
484 485 486 487
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
488
  shortname:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
489 490
  count: true

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

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

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

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

564 565 566
# Local Search
# See: https://github.com/wzpan/hexo-generator-search/
local_search:
567
  enable: false
568

569 570 571 572 573 574 575 576 577
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

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

  # 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

610
  # value: mathjax / katex (suggest: katex)
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
611 612 613
  engine: katex

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

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
623 624 625 626 627 628 629 630 631 632
  # 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

633
# ---------------------------------------------------------------
634 635
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
636

637 638 639 640
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

641 642 643 644 645
# 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).
646
  mask_color: "rgba(0,0,0,0.6)"
647

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

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

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

714 715 716 717
# Google AdSense
google_adsense:
  enable: false
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
718
  client:
719 720
  enable_page_level_ads: true

721 722 723 724 725 726 727 728 729
# 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).
730
    color: "#aaa"
731

732 733 734 735 736 737 738 739
# 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

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

752
# Assets
753
# In theme directory (source/css).
754
css: css
755
# In theme directory (source/js).
756
js: js
757 758
# In theme directory (source/images).
images: images
759

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

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

  # 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
784 785
  jquery:

786 787 788 789 790 791 792
  # 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
793 794
  velocity:
  velocity_ui:
795 796 797 798 799 800 801 802

  # 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
803 804 805
  gitalk_js:
  gitalk_css:
  gitalk_md5:
806 807 808 809 810 811 812

  # 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
813 814
  valine:
  leancloud_storage:
815 816 817 818 819 820

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

823 824 825 826 827
  # 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
828 829
  instantsearch_js:
  instantsearch_css:
830 831 832 833 834

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

837 838 839 840
  # 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
841
  canvas_nest:
842 843 844 845 846 847

  # 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
848 849
  fancybox_js:
  fancybox_css:
850 851 852 853 854

  # 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
855
  masonry:
856 857 858 859 860

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

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

  # Using version: latest
  # See: https://github.com/MoOx/pjax/
  # Example:
  # pjax: //cdn.jsdelivr.net/npm/pjax@latest/pjax.min.js
  pjax:
874 875 876 877 878 879 880 881

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