_config.yml 10.6 KB
Newer Older
1 2 3
# ---------------------------------------------------------------
# Site Information config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
4

5 6 7 8 9 10
favicon:
  small: /imgs/favicon-16x16-stun.png
  medium: /imgs/favicon-32x32-stun.png
  # apple_touch_icon: /imgs/apple-touch-icon-stun.png
  # safari_pinned_tab: /imgs/logo-stun.svg

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
header:
  # Header height (Only percentage units are supported).
  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
    # In theme directory (source/imgs): /images/avatar.png
    # 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

29 30 31 32 33 34 35 36
# 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
37
  # Show the CC license at the post bottom.
38 39 40
  post: true
  # You can set a language value if you prefer a translated version of CC license.
  # Valid values of language: en, zh, etc.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
  # If not set, "en" will be used by default.
  language: en

# Back to top button.
back2top:
  enable: true
  icon:
    # Icon name in FontAwesome, see: https://fontawesome.com/icons?d=listing
    # `rocket` is recommended.
    name: rocket
    # Animation of rocket launch.
    animation: true
    # Rotation Angle of icon.
    rotate: -45deg
    # Please use quote to wrap value (Support for all types of CSS color units).
    color: "#49b1f5"
    # Colour when the mouse hovers it.
    hover_color: "#fc6423"
59

60
# Footer of your site.
61
footer:
62 63 64 65 66 67 68 69
  # Background image in the footer.
  bg_image:
    enable: true
    # In theme directory (source/imgs): /images/avatar.png
    # In site directory (source/uploads): /uploads/avatar.png
    # You can also use a link of image.
    url: 
  # Copyright information.
70 71 72
  copyright:
    enable: true
    # If not set, will be used `author` from Hexo main config.
73 74
    text: 
    # Specify the date when the site was setup. If not set, the current year will be used.
75
    since: 
76
    # Specify the date when the site ended. If not set, the current year will be used.
77
    end: 
78
  # Icon between the copyright year and the owner.
79
  icon:
80
    enable: true
81
    # Icon name in FontAwesome, see: https://fontawesome.com/icons?d=listing
82
    # `heart` is recommended with animation in red (#ff0000).
83
    name: heart
84
    # Heart beat animation.
85
    animation: true
86
    # Please use quote to wrap value (Support for all types of CSS color units).
87 88 89 90 91
    color: "#ff0000"
  # Hexo link (Powered by Hexo).
  powered:
    enable: true
    # Version info of Hexo after Hexo link (e.g. vX.X.X).
92
    version: true
93 94 95 96 97
  # Theme info link (Theme - stun).
  theme:
    enable: true
    # Version info of theme after theme info (e.g. vX.X.X).
    version: true
98
  # Beian icp information for Chinese users. see: http://www.miitbeian.gov.cn
99 100 101 102 103
  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>).
104 105 106
  custom:
    enable: false
    text: 
107 108 109 110 111

# ---------------------------------------------------------------
# Menu config
# ---------------------------------------------------------------

112
# Header navigation menu.
113 114
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon. If not set, "question-circle-o" icon will be shown.
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
115
menu:
116 117 118 119 120 121 122 123
  home: / || home
  archives: /archives/ || folder-open
  categories: /categories/ || th
  tags: /tags/ || tags
  about: /about/ || user
  # reading: /reading/ || book
  # sitemap: /sitemap.xml || sitemap
  # xxx: /xxx/ || xxx
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
124

125 126
menu_settings:
  icon: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
127

128 129 130
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
131

132
sidebar:
133
  enable: true
134
  # Sidebar position, available values: left | right
135
  float: right
136
  # Sidebar offset from top menubar (Support for all types of CSS size units).
137
  offsetTop: 20px
138
  # Define the sidebar width, 260px ~ 360px is better (Support for all types of CSS size units).
139
  width: 300px
140
  # Horizon line.
141
  horizon_line: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
142

143 144
author:
  enable: true
145
  # Avatar in the sidebar.
146 147 148
  avatar:
    # In theme directory (source/imgs): /images/avatar.png
    # In site directory (source/uploads): /uploads/avatar.png
149 150 151
    # You can also use a link of image.
    url: 
    # If true, the avatar would be displayed in a circle.
152
    rounded: true
153
    # The value should be chosen from 0 to 1.
154
    opacity: 1
155 156
    # Mouse hover animation, available value: turn | shake
    animation: turn
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
157

158 159
  # Your favorite motto (e.g. Talk is cheap, show me your code).
  motto: Talk is cheap, show me your code.
160

161
# Social links.
162 163 164
# Value before `||` delimiter is the target link.
# Value after `||` delimiter is the name of FontAwesome icon.
# If you can`t find a suitable icon, you can choose to display the original.
165
#   text by adding the "origin" prefix (e.g. origin:sf, then "sf" will be show).
166 167 168 169 170 171 172 173 174 175 176 177
social:
  enable: true
  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
178

179
social_setting:
180
  # Only show social links by an icon.
181
  icon_only: true
182 183 184
  # 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
185
  text_align: center
186

187
# Table Of Contents in the Sidebar.
188 189 190 191
toc:
  enable: true
  # Automatically add list number to toc.
  number: true
192
  # If true, all words will be placed on next lines if header width longer then sidebar width.
193 194
  wrap: true
  # Maximum heading depth of generated toc. You can set it in one post through `toc_max_depth` in Front-matter.
195
  # e.g. value: 3, will use h1~3 to generated toc.
196
  max_depth: 5
197

198
# Subscribe of email and rss.
199
feed:
200
  enable: false
201
  # Enter your email subscription link (e.g. http://eepurl.com/guAE6j).
202 203
  email: 
  # rss: 
204

205
# The reading progress of post.
206 207
reading_progress:
  enable: true
208 209
  # Please use the quote to wrap value (Support for all types of CSS color units).
  color: "#fc6423"
210
  # Support for all types of CSS size units.
211
  height: 1px
212

213 214 215
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
216

217
# The meta-information at the front of the post.
218
post_meta:
219 220
  icon_only: false
  # Show create information.
221 222 223 224
  created:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: calendar-o
225
  # Show update information.
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 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.
  # Don't enable it before you see: https://github.com/willin/hexo-wordcount
  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.
  # Don't enable it before you see: https://github.com/willin/hexo-wordcount
  word_count:
    enable: false
    # Icon name in FontAwesome, see: https://fontawesome.com/v4.7.0/icons/
    icon: file-word-o
248

249
# Code highlight.
250 251 252 253 254
# values:
# - light
# - dark
# - ocean
highlight_theme: light
255

256
# Code wrap.
257 258 259
# values: true or false
code_word_wrap: true

260
# Horizonal alignment of img.
261 262 263 264 265
# values:
# - left
# - center
# - right
# 
266
# If you don't want to set the align of the image, please empty it, then it will show by default.
267 268
img_horizonal_align: 

269
# Vertical alignment of text and images.
270 271 272 273 274 275
# values:
# - top
# - middle
# - bottom
text_vertical_align_with_img: bottom

276
# Show tags at the bottom of the post.
277 278
post_tags: true

279 280
# Show "post end" at the bottom of the post.
post_end_text:
281
  enable: true
282
  # Show horizon line before the text that prompts the end of the article.
283 284
  horizon_line: true

285
# Reward
286
reward:
287 288 289
  enable: false
  alipay: 
  wechat: 
290

291
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
292 293 294 295 296 297 298
# Comment config
# ---------------------------------------------------------------

# Gitment
# See: https://github.com/imsun/gitment
gitment:
  enable: true
299
  # Github username.
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
300 301 302 303 304 305 306 307 308
  owner: 
  # Github repository.
  repo: 
  client_id: 
  client_secret: 
  # Enable / Disable Lazy load. Enable is recommended.
  lazy: true

# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
309 310
# Statistics and Analytics config
# ---------------------------------------------------------------
311

EvanOne(文一)'s avatar
EvanOne(文一) 已提交
312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330
busuanzi:
  enable: true
  # Number of unique visitor to the entire site.
  site_uv:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: user
  # Number of page view to the entire site.
  site_pv:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: eye
  # Number of page view to a post.
  post_pv:
    enable: true
    # Icon name in FontAwesome, see: https://fontawesome.com/icons
    icon: eye

# ---------------------------------------------------------------
331 332
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
333

334 335
# Tag cloud.
# If not used, comment it or ignore it.
336 337 338 339 340 341 342 343 344
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
  # Maximum number of tags displayed. Change it if you have more than 200 tags
  max_amount: 200
345

346 347
# Assets.
# In theme directory (source/css).
348
css: css
349
# In theme directory (source/js).
350
js: js
351
# In theme directory (source/imgs).
352 353
img: imgs

354
# CND for third libs.
355 356 357 358 359 360 361
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

362
# Scripts loaded at the end of the body.
363 364 365 366 367 368
scripts:
  - /js/utils.js
  - /js/scroll.js
  - /js/header.js
  - /js/sidebar.js
  - /js/post.js