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

5 6 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74
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

# 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
  # Show the CC license in the post bottom.
  post: true
  # You can set a language value if you prefer a translated version of CC license.
  # Valid values of language: en, zh, etc.
  # If not set, 'en' will be used by default.
  language: zh

# Footer of your site
footer:
  copyright:
    enable: true
    # If not set, will be used `author` from Hexo main config.
    content: liuyib. All Rights Reserved.
    # Specify the date when the site was setup. If not set, current year will be used.
    since: 2019
    end: 
  
  # Icon between copyright year and copyright owner.
  icon:
    # Icon name in FontAwesome, see: https://fontawesome.com/icons?d=listing
    # `heart` is recommended with animation in red (e.g. #ff0000).
    name: heart
    # Heart beat animation
    animation: true
    # Please use quote to wrap value (Support for all types of CSS color units)
    color: "#ff0000"
  
  # Hexo link (Powered by Hexo).
  powered:
    enable: true
    # Version info of Hexo after Hexo link (e.g. vX.X.X).
    version: false
  
  # Theme info link (Theme - stun).
  theme:
    enable: true
    # Version info of theme after theme info (e.g. vX.X.X).
    version: true
  
  # Beian icp information for Chinese users.
  # http://www.miitbeian.gov.cn
  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>).
  custom_text: Hosted by <a href="https://pages.github.com/" rel="noopener" target="_blank">Github Pages</a>

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

# Header navigation menu
# Value before `||` delimeter is the target link.
# Value after `||` delimeter is the name of FontAwesome icon. If not set, 'question-circle-o' icon will be show.
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
75
menu:
76 77 78 79 80 81 82 83
  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(文一) 已提交
84

85 86
menu_settings:
  icon: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
87

88 89 90
# ---------------------------------------------------------------
# Sidebar config
# ---------------------------------------------------------------
91

92 93 94 95 96 97 98 99 100 101 102
sidebar:
  # Sidebar Display, available values: always | remove
  display: always
  # Sidebar position, available values: left | right
  float: left
  # Sidebar offset from top menubar (Support for all types of CSS size units)
  offsetTop: 30px
  # Define the sidebar width (Support for all types of CSS size units)
  width: 300px
  # Horizon line
  horizon_line: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
103

104 105 106 107 108 109 110 111 112 113 114 115 116
author:
  enable: true
  # Avatar in the sidebar
  avatar:
    # In theme directory (source/imgs): /images/avatar.png
    # In site directory (source/uploads): /uploads/avatar.png
    url: /imgs/avatar.png
    # If true, the avatar would be dispalyed in circle.
    rounded: true
    # The value should be choose from 0 to 1. (Don't omit the zero before decimal point. e.g. 0.5 can`t be .5)
    opacity: 1
    # Mouse hover animation, available value: turn | shake
    animation: shake
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
117

118 119
  # Your favorite motto (e.g. Talk is cheap, show me your code.)
  motto: write code and love life
120

121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
# Social links
# Value before `||` delimeter is the target link.
# Value after `||` delimeter is the name of FontAwesome icon.
# If you can`t find suitable icon, you can choose to display the original
#   text by adding the "origin" prefix (e.g. origin:sf, then "sf" will be show)
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
138

139 140 141
social_setting:
  # Only show social links by icon
  icon_only: true
142

143 144 145 146 147 148 149 150 151 152
# Table Of Contents in the Sidebar
toc:
  enable: true
  # Automatically add list number to toc.
  number: true
  # If true, all words will placed on next lines if header width longer then sidebar width.
  wrap: true
  # Maximum heading depth of generated toc. You can set it in one post through `toc_max_depth` in Front-matter.
  # e.g. value: 3, will use h1~3 to generated toc
  max_depth: 5
153

154 155 156 157 158
# Subscribe of email and rss
feed:
  enable: true
  mail: mail-test
  rss: rss-test
159

160 161 162 163 164 165 166
# The reading progress of post
reading_progress:
  enable: true
  # Please use quote to wrap value (Support for all types of CSS color units)
  color: "#49b1f5"
  # Support for all types of CSS size units
  height: 1px
167

168 169 170
# ---------------------------------------------------------------
# Post config
# ---------------------------------------------------------------
171

172 173 174 175 176 177 178 179 180 181 182
post_meta:
  icon_only: 
  created:  
  updated: 

# Automatically Excerpt (Not recommend).
# Use <!-- more --> in the post to control excerpt accurately.
auto_excerpt:
  enable: false
  # The number of words that are automatically reserved as a excerpt
  length: 300
183

184 185 186 187 188 189
# Code highlight
# values:
# - light
# - dark
# - ocean
highlight_theme: light
190

191
# Code wrap
192 193 194 195 196 197 198 199 200
# values: true or false
code_word_wrap: true

# Horizonal alignment of img
# values:
# - left
# - center
# - right
# 
201 202
# If you don't want to set the align of img
# please empty it, then img will show by default
203 204 205 206 207 208 209 210 211
img_horizonal_align: 

# Vertical alignment of text and images
# values:
# - top
# - middle
# - bottom
text_vertical_align_with_img: bottom

212 213
# Reward
reward:
214 215 216
  enable: true
  alipay: https://raw.githubusercontent.com/liuyib/picBed/master/hexo-blog/20190529222805.png
  wechat: https://raw.githubusercontent.com/liuyib/picBed/master/hexo-blog/20190529222806.png
217

218 219 220
# ---------------------------------------------------------------
# Other config
# ---------------------------------------------------------------
EvanOne(文一)'s avatar
EvanOne(文一) 已提交
221

222 223
# Header navigation bar height (Support for all types of CSS size units)
header_nav_height: 50px
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
224

225 226
# Header height (Only percentage units are supported)
header_height: 80%
227

228 229 230 231 232 233 234 235 236
# Background image in the header
header_bg_img: https://raw.githubusercontent.com/liuyib/picBed/master/hexo-blog/20190529223722.jpg

# Background image in the footer
footer_bg_img: https://raw.githubusercontent.com/liuyib/picBed/master/hexo-blog/20190529223722.jpg

# Back to top
# values: true or false
back_to_top: true
EvanOne(文一)'s avatar
init  
EvanOne(文一) 已提交
237

238 239 240 241 242 243 244 245
# Blur filter effect of top image
top_img_blur:
  enable: false
  level: 15px

# Tag cloud
# If not used, comment it or ignore it
tag:
246
  # Color for tag (please use quote to wrap value, only support HEX)
247 248 249
  start_color: '#a4d8fa'
  end_color: '#49b1f5'
  # Font size for tag
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275
  min_font_size: 24
  max_font_size: 34

# Assets
# In theme directory (source/css)
css: css
# In theme directory (source/js)
js: js
# In theme directory (source/imgs)
img: imgs

# CND for third libs
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

# Scripts loaded in the end of the body
scripts:
  - /js/utils.js
  - /js/scroll.js
  - /js/header.js
  - /js/sidebar.js
  - /js/post.js