_config.yml 11.9 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 44
  height: 80%
  # Header navigation bar height (Support for all types of CSS size units).
  nav_height: 50px
  # Background image in the header.
  bg_image:
    enable: true
45
    # In theme directory (source/images): /images/avatar.png
46 47 48 49 50 51 52 53 54
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
    url: 
  # Blur filter effect of the header background.
  blur_effect:
    enable: false
    # Degree of blur.
    level: 15px

55 56 57 58 59 60 61 62
# 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
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 68 69 70 71 72 73
  # If not set, "en" will be used by default.
  language: en

# 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 90
  # Background image in the footer.
  bg_image:
    enable: true
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 163 164
    # Mouse hover animation, available value: turn | shake
    animation: turn
  # Your favorite motto (e.g. Talk is cheap, show me your code).
165
  motto: 
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 193
  # Available values are equal to "justify-content" attribute in CSS.
  # e.g. flex-start | center | flex-end | space-between, etc.
  # 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
  # Enter the rss address of you set (e.g. /atom.xml)
  rss: 
217

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

226 227 228
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
229

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

267 268 269 270 271
# Automatically retain article excerpt.
auto_excerpt:
  enable: false
  length: 150

272 273 274 275 276 277 278 279 280 281 282 283 284
# Stick post to the top.
# To enable this feature, you need to install dependencies `hexo-generator-index-pin-top`
# For details, see: https://github.com/netcan/hexo-generator-index-pin-top
stick_top:
  # Position of icon, available values: left | right
  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"

285
# Code highlight.
286 287 288 289 290
# values:
# - light
# - dark
# - ocean
highlight_theme: light
291

292
# Code wrap.
293 294 295
# values: true or false
code_word_wrap: true

296
# Horizonal alignment of img.
297 298 299 300 301
# values:
# - left
# - center
# - right
# 
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
302 303
# If you don't want to set the align of the image, please empty it,
#   then it will show by default.
304 305
img_horizonal_align: 

306
# Vertical alignment of text and images.
307 308 309 310 311 312
# values:
# - top
# - middle
# - bottom
text_vertical_align_with_img: bottom

313
# Show tags at the bottom of the post.
314 315
post_tags: true

316 317
# Show "post end" at the bottom of the post.
post_end_text:
318
  enable: true
319
  # Show horizon line before the text that prompts the end of the article.
320 321
  horizon_line: true

322
# Reward
323
reward:
324 325 326
  enable: false
  alipay: 
  wechat: 
327

328 329 330 331 332
# Whether to page the article list on the home page and archives page.
post_list_paged:
  home: true
  archives: true

333
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
334 335 336 337 338 339
# Comment config
# ---------------------------------------------------------------

# Gitment
# See: https://github.com/imsun/gitment
gitment:
340
  enable: false
341
  # Github username.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
342 343 344 345 346 347 348 349 350
  owner: 
  # Github repository.
  repo: 
  client_id: 
  client_secret: 
  # Enable / Disable Lazy load. Enable is recommended.
  lazy: true

# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
351 352
# Statistics and Analytics config
# ---------------------------------------------------------------
353

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
354 355
busuanzi:
  enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
356
  site:
357
    # Only show by icon.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
358 359 360 361 362 363 364 365 366 367 368
    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(文一) 已提交
369 370
  # Number of page view to a post.
  post_pv:
371
    # Only show by icon.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
372
    icon_only: false
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
373
    enable: true
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
374
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
375 376
    icon: eye

377
# ---------------------------------------------------------------
378 379
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
380

381 382
# Tag cloud.
# If not used, comment it or ignore it.
383 384 385 386 387 388 389
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(文一) 已提交
390
  # Maximum number of tags displayed. Change it if you have more than 200 tags.
391
  max_amount: 200
392

393 394
# Assets.
# In theme directory (source/css).
395
css: css
396
# In theme directory (source/js).
397
js: js
398 399
# In theme directory (source/images).
images: images
400

401
# CND for third libs.
402 403 404 405 406 407
cdn:
  css:
    fontawesome: https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css
  js:
    jquery: https://cdn.jsdelivr.net/npm/jquery@latest/dist/jquery.min.js
    velocity: https://cdn.jsdelivr.net/npm/velocity-animate@latest/velocity.min.js