_config.yml 17.5 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
# ---------------------------------------------------------------
# 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
  categories: /categories/ || th
  tags: /tags/ || tags
  about: /about/ || user
  # reading: /reading/ || book
  # sitemap: /sitemap.xml || sitemap
  # You can also add a item by yourself.
  # xxx: /xxx/ || xxx

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

27
# ---------------------------------------------------------------
28
# Site config
29
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
30

31
favicon:
32 33 34 35
  small: /images/favicon-16x16-stun.png
  medium: /images/favicon-32x32-stun.png
  # apple_touch_icon: /images/apple-touch-icon-stun.png
  # safari_pinned_tab: /images/logo-stun.svg
36

37
header:
38
  # Header height (Support for all types of CSS size units).
39 40 41 42 43
  height: 80%
  # Header navigation bar height (Support for all types of CSS size units).
  nav_height: 50px
  # Background image in the header.
  bg_image:
44
    enable: false
45
    # In theme directory (source/images): /images/avatar.png
46 47 48
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
    url: 
49 50
  # Mask effect of the top background image.
  mask:
51
    enable: false
52 53
    # Opacity of mask (value: 0 ~ 1).
    opacity: 0.5
54

55 56 57
# Creative Commons 4.0 International License.
creative_commons:
  enable: true
58 59
  # 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/
60 61 62
  license: BY-NC-SA
  # Show the CC license in the sidebar.
  sidebar: true
63
  # Show the CC license at the post bottom.
64 65 66
  post: true
  # You can set a language value if you prefer a translated version of CC license.
  # Valid values of language: en, zh, etc.
67
  # If not set, "en" will be used by default.
68
  language: 
69 70 71 72 73

# Back to top button.
back2top:
  enable: true
  icon:
74
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
75 76 77 78 79 80
    # `rocket` is recommended.
    name: rocket
    # Animation of rocket launch.
    animation: true
    # Rotation Angle of icon.
    rotate: -45deg
81
    # Please use quote to wrap value (All CSS size units are supported).
82 83 84
    color: "#49b1f5"
    # Colour when the mouse hovers it.
    hover_color: "#fc6423"
85

86
# Footer of your site.
87
footer:
88 89
  # Background image in the footer.
  bg_image:
90
    enable: false
91
    # In theme directory (source/images): /images/avatar.png
92 93 94 95
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
    url: 
  # Copyright information.
96 97 98
  copyright:
    enable: true
    # If not set, will be used `author` from Hexo main config.
99
    #   (e.g. liuyib. All Rights Reserved.)
100
    text: 
101
    # Start time. If not set, the current year will be used.
102
    since: 
103
    # End time. If not set, the current year will be used.
104
    end: 
105
  # The icon between the copyright year and the owner.
106
  icon:
107
    enable: true
108
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
109
    # `heart` is recommended with animation in red (#ff0000).
110
    name: heart
111
    # Heart beat animation.
112
    animation: true
113
    # Please use quote to wrap value (All CSS size units are supported).
114 115 116 117 118
    color: "#ff0000"
  # Hexo link (Powered by Hexo).
  powered:
    enable: true
    # Version info of Hexo after Hexo link (e.g. vX.X.X).
119
    version: true
120 121 122 123 124
  # Theme info link (Theme - stun).
  theme:
    enable: true
    # Version info of theme after theme info (e.g. vX.X.X).
    version: true
125
  # Beian icp information for Chinese users. see: http://www.miitbeian.gov.cn/
126 127 128 129 130
  beian:
    enable: false
    # 备案 XXXXXXXX 号
    icp: 
  # Any custom text (e.g. Hosted by <a href="https://pages.github.com/" rel="noopener" target="_blank">Github Pages</a>).
131 132 133
  custom:
    enable: false
    text: 
134 135 136 137

# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
138

139
sidebar:
140
  enable: true
141
  # Sidebar position, available values: left | right.
142
  position: right
143
  # Sidebar offset from top menubar (Only px units are supported).
144
  offsetTop: 20px
145
  # Define the sidebar width, 260px ~ 360px is better (All CSS size units are supported).
146
  width: 300px
147
  # Horizon line.
148
  horizon_line: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
149

150 151
author:
  enable: true
152
  # Avatar in the sidebar.
153
  avatar:
154
    # In theme directory (source/images): /images/avatar.png
155
    # In site directory (source/uploads): /uploads/avatar.png
156
    # You can also use a link of image.
157
    url: /images/avatar.png
158
    # If true, the avatar would be displayed in a circle.
159
    rounded: true
160
    # The value should be chosen from 0 to 1.
161
    opacity: 1
162
    # Mouse hover animation, available value: turn | shake.
163
    animation: turn
164 165
  # Your favorite motto.
  motto: hello world
166

167
# Social links.
168 169
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon.
170
# See: https://fontawesome.com/v4.7.0/icons/
171
# If you can`t find a suitable icon, you can choose to display the original
172
#   text by adding the "origin" prefix (e.g. origin:sf, then "sf" will be show).
173 174 175 176 177 178 179 180 181 182 183
social:
  github: https://github.com/ || github
  google: https://plus.google.com/ || google
  twitter: https://twitter.com/ || twitter
  youtube: https://youtube.com/ || youtube
  segmentfault: https://segmentfault.com/ || origin:sf
  zhihu: https://www.zhihu.com/ || origin:知
  weibo: https://weibo.com/ || weibo
  wechat: yournumber || weixin
  telegram: yournumber || telegram
  qq: yournumber || qq
184 185
  # You can also add a link by yourself.
  # xxx: xxx || (origin:)xxx
186

187
social_setting:
188
  enable: false
189
  # Only show by icon.
190
  icon_only: true
191 192
  # Available values are equal to "justify-content" attribute in CSS.
  # e.g. flex-start | center | flex-end | space-between, etc.
193
  # For details, please see: https://developer.mozilla.org/zh-CN/docs/Web/CSS/justify-content/
194
  text_align: center
195

196
# Table Of Contents in the Sidebar.
197 198 199 200
toc:
  enable: true
  # Automatically add list number to toc.
  number: true
201
  # If true, all words will be placed on the next lines when they overflow.
202
  wrap: true
203 204 205 206
  # 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.
207
  # e.g. value: 3, will use h1~3 to generated toc.
208
  max_depth: 6
209

210
# Subscribe of email and rss.
211
feed:
212
  enable: false
213
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
214
  email: 
215 216 217 218
  # 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.
219
  rss: 
220

221
# The reading progress of post.
222 223
reading_progress:
  enable: true
224
  # Please use the quote to wrap value (All CSS size units are supported).
225
  color: "#fc6423"
226
  # Support for all types of CSS size units.
227
  height: 1px
228

229 230 231
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
232

233
# The meta-information at the front of the post.
234
post_meta:
235
  # Only show by icon.
236 237
  icon_only: false
  # Show create information.
238 239 240 241
  created:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: calendar-o
242
  # Show update information.
243 244 245 246 247
  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.
248
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
249
  # Don't enable this before install dependencies
250
  #   by `npm install hexo-wordcount --save` in hexo directory.
251 252 253 254 255 256 257 258 259 260 261
  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.
262
  # Dependencies: https://github.com/willin/hexo-wordcount/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
263
  # Don't enable this before install dependencies
264
  #   by `npm install hexo-wordcount --save` in hexo directory.
265 266 267 268
  word_count:
    enable: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: file-word-o
269

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
270 271 272 273 274 275
# The article list on the homepage or archives page.
post_list:
  # Whether to paginate.
  paginate:
    home: true
    archives: false
276 277
  # Whether to show the cover image of post.
  cover_image:
278
    home: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
279 280 281 282 283 284 285 286 287 288 289

# 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

290 291 292 293 294
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

295
# Stick post to the top.
296 297 298
# 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.
299
stick_top:
300
  # Position of icon, available values: left | right.
301 302 303 304 305 306 307 308
  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).
  color: "#999"

309
# Code highlight.
310 311 312 313 314
# values:
# - light
# - dark
# - ocean
highlight_theme: light
315

316 317
# Code wrap
# values: true or false.
318
code_word_wrap: false
319

320
# Horizonal alignment of img.
321 322 323 324 325
# values:
# - left
# - center
# - right
# 
326
# If you empty it, images will show by default.
327 328
img_horizonal_align: 

329
# Vertical alignment of text and images.
330 331 332 333 334 335
# values:
# - top
# - middle
# - bottom
text_vertical_align_with_img: bottom

336
# Reward
337
reward:
338 339 340
  enable: false
  alipay: 
  wechat: 
341

342
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
343 344 345 346
# Comment config
# ---------------------------------------------------------------

# Gitment
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
347
# See: https://github.com/imsun/gitment/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
348
gitment:
349
  enable: false
350
  # Github username.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
351 352 353
  owner: 
  # Github repository.
  repo: 
354
  # Github Application Client ID.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
355
  client_id: 
356
  # Github Application Client Secret.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
357 358 359 360
  client_secret: 
  # Enable / Disable Lazy load. Enable is recommended.
  lazy: true

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
361
# Gittalk
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
362
# See: https://github.com/gitalk/gitalk/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
363 364 365 366 367 368
gitalk:
  enable: false
  # Github username.
  owner: 
  # Github repository.
  repo: 
369
  # Github Application Client ID.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
370
  client_id: 
371
  # Github Application Client Secret.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
372
  client_secret: 
373
  # GitHub repo owner and collaborators, only these guys can initialize github issues.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
374
  admin: 
375
  # Facebook-like distraction free mode.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
376
  distraction_free_mode: false
377
  # Gitalk's display language depends on user's browser or system environment.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
378
  # If you want everyone visiting your site to see a uniform language,
379 380
  #   you can set a force language value.
  # Available values: en, zh-CN, es-ES, fr, ru, zh-TW.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
381 382
  language: 

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409
# Valine
# See: https://valine.js.org/quickstart.html
valine:
  enable: false
  # Your leancloud application appid.
  appid: 
  # Your leancloud application appkey.
  appkey: 
  # 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.
  language: 

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
410 411
# Livere
# See: https://www.livere.com/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
412 413 414 415
livere:
  enable: false
  uid: 

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
416 417 418 419 420 421 422
# Disqus
# See: https://disqus.com/
disqus:
  enable: false
  shortname: 
  count: true

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
423
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
424 425
# Statistics and Analytics config
# ---------------------------------------------------------------
426

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
427 428
# Busuanzi statistics
# See: https://busuanzi.ibruce.info/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
429
busuanzi:
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
430
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
431
  site:
432
    # Only show by icon.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
433 434 435 436 437 438 439 440 441 442 443
    icon_only: false
    # Number of unique visitor to the entire 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.
    pv:
      enable: true
      # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
      icon: eye
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
444 445
  # Number of page view to a post.
  post_pv:
446
    enable: true
447
    # Only show by icon.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
448 449
    icon_only: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
450 451
    icon: eye

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
452 453 454 455 456 457 458
# ---------------------------------------------------------------
# Search config
# ---------------------------------------------------------------

# Algolia Search
# Dependencies: https://github.com/algolia/instantsearch.js/
algolia_search:
459
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
460 461 462 463 464 465 466
  hits:
    # Number of search results displayed per page.
    per_page: 10
  labels:
    # Whether to show stats of search.
    show_stats: true

467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489
# ---------------------------------------------------------------
# Background config
# ---------------------------------------------------------------

# Canvas-ribbon
# Dependencies: https://github.com/hustcc/ribbon.js
canvas_ribbon:
  enable: false
  # The width of the ribbon.
  size: 300
  # 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
  # RGB values, use ',' to separate
  # Color for lines
490
  color: "0,0,0"
491 492 493 494 495 496 497
  # 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(文一) 已提交
498 499 500 501
# ---------------------------------------------------------------
# Math and Chart config
# ---------------------------------------------------------------
math:
502
  enable: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529

  # 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

  engine: katex

  # See: https://github.com/mathjax/MathJax/
  # hexo-renderer-pandoc (or hexo-renderer-kramed) needed to full MathJax support.
  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
  
  # 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

530
# ---------------------------------------------------------------
531 532
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
533

534 535 536 537 538 539 540 541 542 543 544 545
# Fancybox
# See: https://fancyapps.com/fancybox/3/
fancybox: false

# If you are use "photos" attribute in the Front-matter,
#   you can enable this to show images in waterfalls flow.
gallery_waterfall:
  enable: false
  col_width: 220px
  gap_x: 10px
  gap_y: 10px

546 547 548 549 550 551 552
# Google AdSense
google_adsense:
  enable: false
  js_src: https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js
  client: 
  enable_page_level_ads: true

553 554 555 556 557 558 559 560 561 562 563
# 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).
    color: "#aaa"

564 565 566 567 568 569 570 571
# 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

572
# Tag cloud
573
# If not used, comment it or ignore it.
574 575 576 577 578 579 580
tag_cloud:
  # Color for tag (please use the quote to wrap value, only support HEX).
  start_color: "#a4d8fa"
  end_color: "#49b1f5"
  # Size for tag.
  min_size: 24
  max_size: 34
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
581
  # Maximum number of tags displayed. Change it if you have more than 200 tags.
582
  max_amount: 200
583

584
# Assets
585
# In theme directory (source/css).
586
css: css
587
# In theme directory (source/js).
588
js: js
589 590
# In theme directory (source/images).
images: images
591

592 593 594 595 596
# Set a CDN address for the vendor you want to customize.
# ---------------------------------------------------------------
#! Do not edit the follow configs.
#! Unless you know what you are doing.
# ---------------------------------------------------------------
597 598 599
cdn:
  css:
    fontawesome: https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css
600

601
  js:
602 603 604 605 606
    jquery: https://cdn.jsdelivr.net/npm/jquery@v3.4.1/dist/jquery.min.js
    velocity: https://cdn.jsdelivr.net/npm/velocity-animate@1.5.2/velocity.min.js
    velocity-ui: https://cdn.jsdelivr.net/npm/velocity-ui-pack@1.2.2/velocity.ui.min.js

  canvas_ribbon: https://cdn.jsdelivr.net/npm/ribbon.js@latest/dist/ribbon.min.js
607
  canvas_nest: https://cdn.jsdelivr.net/gh/theme-next/theme-next-canvas-nest@1.0.0/canvas-nest.min.js