forked from fluid-dev/hexo-theme-fluid
-
Notifications
You must be signed in to change notification settings - Fork 5
/
_config.yml
422 lines (371 loc) · 17.2 KB
/
_config.yml
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
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
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
410
411
412
413
414
415
416
417
418
419
420
421
422
#---------------------------
# Fluid
# Author: Fluid-dev organization
# Github: https://github.com/fluid-dev/hexo-theme-fluid
#---------------------------
#---------------------------
# 全局
# Site
#---------------------------
avatar: /img/head.jpg # 头像
favicon: /img/favicon.png # 网站标签页的 icon
apple_touch_icon: /img/apple-touch-icon.png # 用于苹果设备的 icon
title_join_string: ' ~ ' # 浏览器标签页中的标题分隔符,效果: 文章名 ~ 站点名
force_https: false # 强制所有链接升级为 HTTPS(适用于图片等资源出现 HTTP 混入报错)
highlight: # 代码高亮
enable: true
line_number: true # 显示代码行号
theme: tomorrow-night-eighties # available: github-v2 | tomorrow | tomorrow-night | tomorrow-night-eighties,更多主题可从 https://jmblog.github.io/color-themes-for-google-code-prettify/ 获取,保存为 `*.min.css` 到 `source/lib/prettify/`,在其中 .prettyprint{ background: ***; ...} 的background 值后加上 !important,例如:.prettyprint{background:#fafbfc!important; ...}
fun_features: # 一些好玩的功能
typing: # 为 subtitle 添加打字机效果
enable: true
typeSpeed: 70 # 打印速度
cursorChar: "_" # 游标字符
loop: false # 是否循环播放效果
anchorjs: # 为文章内容中的标题添加锚图标
enable: true
element: h1,h2,h3,h4,h5,h6
placement: right # icon放置的位置: left | right
visible: hover # always:一直可见,hover:鼠标悬停时出现,touch:仅移动设备可见
icon: "" # 例如:§ | # | ❡ 等,留空则为默认效果
mouse_click: # 鼠标点击动效
enable: false
style: values # 目前设置两个值:values(价值观词汇) | love(爱心)
monitortext:
enable: true
text: 你不爱我了QAQ
snow:
enable: true # 是否开启背景飘雪效果
color: rgba(255, 255, 255, 0.7) # 雪花颜色
color: # 主体颜色配置,可以从这里寻找启发: https://www.webdesignrankings.com/resources/lolcolors/
body_bg_color: "#eee"
navbar_bg_color: "#fc9d9a" #2f4154
navbar_text_color: "white"
text_color: "#3c4858"
link_color: "#3c4858"
link_hover_color: "#fe4365" #1abc9c
board_color: "#fff"
toc_title_p_color: "#3c4858"
tocbot_link_color: "#3c4858"
tocbot_link_active_color: "#fe4365" #1abc9c
tocbot_link_shadow: "0.1em 0.1em 0.2em #ffffff"
tocbot_active_link_shadow: "0.1em 0.1em 0.2em #ffbcbc"
sidebar_text_color: "#3c4858"
sidebar_background_color: "rgba(246, 248, 250, 0.82)" #f6f8fad1
sidebar_button_color: "#99a9bf"
sidebar_button_shift_color: "#ffffff"
sidebar_button_shift_shadow: "0.1rem 0.1rem 0.5rem #3e3e3e"
sidebar_about_link_color: "#3c4858"
sidebar_about_link_hover_color: "#fe4365"
sidebar_avatar_border: "5px solid #ffffff"
sidebar_subtitle_color: "#999999"
sidebar_friend_title: "#ffffff"
sidebar_friend_title_background: "#fe91b4"
sidebar_friend_link: "#3c4858"
sidebar_friend_link_hover: "#ffffff"
sidebar_friend_li_border: "1px dashed #bdbdbd"
sidebar_friend_li_hover: "#fe91b4"
sidebar_friend_ico: "#bfbfbf"
footer_color: "#ffffff"
footer_shadow: "0.1rem 0.1rem 0.5rem white"
footer_a_color: "#ffffff"
footer_a_hover_color: "#fe4365"
footer_theme_a_color: "#fc9d9a"
footer_theme_a_shadow: "0.1rem 0.1rem 0.2rem #fe4365"
footer_icon_color: "#fc9d9a"
footer_icon_shadow: "0.1rem 0.1rem 0.5rem #ffffff"
scrollbar_color: "#fec9c9"
scrollbar_thumb_color: "#fe4365"
web_analytics: # 网页统计代码
enable: true
baidu: # 百度统计的Key,留空则不启用
tencent: # 腾讯统计的H5 App id,参见 https://mta.qq.com/h5/manage/ctr_app_manage
woyaola: # 51.la站点统计ID,参见 https://www.51.la/user/site/index
cnzz: # 友盟/cnzz站点统计web_id,参见 https://web.umeng.com/main.php?c=site&a=show
google: # Google统计的Tracking ID,参见 https://analytics.google.com/analytics/web/
lazyload: # 对页面中的图片进行懒加载处理,未在视口的图片不会加载
enable: true
onlypost: true
loadingimg: /img/loading.gif # 网站放在子目录时需要追加子目录前缀
fancybox: # 文章图片灯箱
enable: true
smooth_scroll: # 平滑滚动效果
enable: false
daovoice: # 在线客服 Daovoice 参考:http://dashboard.daovoice.io
enable: false # 是否开启在线客服聊天
appid: '' # 应用ID设置
#---------------------------
# 页头
# Header
#---------------------------
navbar:
blog_title: # 导航栏左侧的标题,为空则按 hexo config.title 显示
menu: # 可自行增减,若想减去某个入口,可以将值留空,显示文本关联 languages
home: /
archive: /archives/
category: /categories/
tag: /tags/
about: /about/
#links: /links/ # 友链页,把前面#去掉即可展示
search: # 搜索栏
enable: true
path: /local-search.xml # 文件引用地址,可以将生成后的 local-search.xml 上传到其它位置引用,如:https://www.example.com/local-search.xml
generatePath: /local-search.xml # 文件生成位置,必须为相对位置
field: post
content: true
scroll_down_arrow: # 向下滚动的箭头
enable: true
banner_height_limit: 90 # 头图高度不小于指定比例,才显示箭头
scroll_after_turning_page: true # 翻页后自动滚动
full_banner: true # 头图和页面头部是否占满全屏,开启需同时设置对应页面 banner_img_height 为100
full_bg_img: true # 头图是否铺满全屏
banner_scroll: false # 头图是否跟随页面滚动
random_bg:
enable: false # 是否开启随机背景
time: 20 # 随机背景轮换时间,单位为秒
fade: 2 # 随机背景渐变时间,单位为秒
type: local # 随机背景类型,可选 online,local ,online 为在线随机背景,local为自定义随机背景
ctype: auto # 可选 random,auto,acg,nature ,auto 为不指定 ctype,random 为在两种 ctype 中随机,留空则不限制图片类型为 bg,具体参见:https://www.xjh.me/3069.html?replytocom=4888
num: 3 # 在线随机背景个数,请不要设置太大
url: # 自定义随机背景地址(可以为相对链接),上方 type 为 local 时填写,每行一个链接,前面的数值编号可以随便填但不要重复
1: http://img.xjh.me/desktop/bg/acg/64082849_p0.jpg
2: http://img.xjh.me/desktop/bg/acg/63946708_p0.jpg
3: http://img.xjh.me/desktop/bg/acg/59756207_p0.jpg
4: http://img.xjh.me/desktop/bg/acg/63374320_p0.jpg
5: http://img.xjh.me/desktop/bg/nature/59190594_p0.jpg
6: http://img.xjh.me/desktop/bg/acg/63093148_p0.jpg
7: http://img.xjh.me/desktop/bg/acg/62494753_p0.jpg
8: http://img.xjh.me/desktop/bg/acg/61749296_p0.jpg
#---------------------------
# 页脚
# Footer
#---------------------------
footer:
show_copyright: true # 显示博客版权信息
date: # 显示博客运行时间
enable: false
create_date: 2015,04,20 # 博客创立时间,格式如 2015,04,20
text: 萌萌哒%d天啦 # 要显示的文字,%d 是指日期数,不要漏掉
site_pv:
enable: true # 是否显示本站总访问量
text: 被瞅了%d次 # %d 是指访问数量
offset: # 总访问量数值修正,不清楚请留空
site_uv:
enable: true # 是否显示本站访客数
text: 被%d人看爆
offset: # 访客数数值修正,不清楚请留空
beian: # The footer of China's website policy, other areas keep disable
enable: false
icp_text: 京ICP证123456号 # ICP证号
police_text: 京公网安备12345678号 # 公安备案号,不填则只显示ICP
police_code: 12345678 # 公安备案的编号,用于URL跳转查询
police_icon: /img/police_beian.png # 公安备案的图片. 为空时不显示备案图片
hitokoto: true # 显示一言,关于一言:https://hitokoto.cn/
scroll_top_arrow: # 向顶部滚动的箭头
enable: true
#---------------------------
# 首页
# Index Page
#---------------------------
index:
banner_img: /img/default.png # 首页 Banner 头图,以下相同
banner_img_height: 100 # 头图高度,屏幕百分比,available: 0 - 100
slogan: # 首页副标题的独立设置
enable: true # 为 false 则不显示任何内容
text: # 为空则按 hexo config.subtitle 显示
auto_excerpt:
enable: true
post_url_target: _self # available: _blank | _self
post_meta: # 是否显示文章信息(时间、字数、分类、标签)
date: true
wordcount: true
category: true
tag: true
post_img:
enable: true # 是否显示首页文章列表图片
default: /img/default.png # 首页文章列表默认图片
random: true # 是否开启文章列表随机图片,具体参见:https://www.xjh.me/3069.html?replytocom=4888
ctype: # 可选 random,auto,acg,nature ,auto 为不指定 ctype,random 为在两种 ctype 中随机,留空则不限制图片类型为 bg
#---------------------------
# 文章页
# Post Page
#---------------------------
post:
banner_img: /img/default.png
banner_img_height: 70 # available: 0 - 100
date_format: "YYYY-MM-DD"
pageview: true # 是否显示访问统计,参见 https://busuanzi.ibruce.info/
toc: # 右侧导航条
enable: true
copyright: # 版权声明
enable: true
content: '本博客所有文章除特别声明外,均采用 <a href="https://zh.wikipedia.org/wiki/Wikipedia:CC_BY-SA_3.0%E5%8D%8F%E8%AE%AE%E6%96%87%E6%9C%AC" rel="nofollow noopener">CC BY-SA 3.0协议</a> 。转载请注明出处!'
custom: # 文章底部自定义内容
enable: false
content: '<img src="https://octodex.github.com/images/jetpacktocat.png" class="rounded mx-auto d-block mt-5" style="width:150px; height:150px;">' # 自定义区域,支持 HTML,可自行插入赞赏码、公众号二维码等内容
comments:
enable: false
type: disqus # available: disqus | valine | waline | gitalk | utterances | changyan | livere
autojump: false # 自动跳转到对应评论
math: # 数学公式,开启之前需要更换 Markdown 渲染器,否则复杂公式会有兼容问题,具体请见 https://fluid-dev.github.io/hexo-fluid-docs/guide/#数学公式
enable: false
specific: false # 开启后,只有在文章 Front-matter 里指定 `math: true` 才会在文章页启动公式转换,以便在页面不包含公式时提高加载速度
engine: mathjax # 公式引擎 available: mathjax | katex
#---------------------------
# 评论
# Comments
#---------------------------
# 开启评论在上方的 post.comments 配置
# utterances
# You can install utterances with https://utteranc.es/ and generate your configuration
utterances:
repo:
issue_term:
label: utterances
theme: github-light
crossorigin: anonymous
# Disqus
disqus:
shortname: # your shortname
# Gitalk
# You can get yout ClientID and ClientSecret from https://github.com/settings/applications/new
# More info available at https://github.com/gitalk/gitalk#options
gitalk:
clientID: # GitHub Application Client ID
clientSecret: # GitHub Application Client Secret
repo: # The repo to store comments
owner: # GitHub repository owner. Can be personal user or organization.
admin: # GitHub repo owner and collaborators, only these guys can initialize github issues, should be like "['admin']" or "['admin1','admin2']"
id: location.pathname # The unique id of the page. Length must less than 50.
language: zh-CN # Localization language key, en, zh-CN and zh-TW are currently available.
labels: "['Gitalk']" # GitHub issue labels.
perPage: 15 # Pagination size, with maximum 100.
pagerDirection: last # Comment sorting direction, available values are last and first.
distractionFreeMode: false # Facebook-like distraction free mode.
createIssueManually: true # By default, Gitalk will create a corresponding github issue for your every single page automatically when the logined user is belong to the admin users. You can create it manually by setting this option to true.
# Valine
# You can get your appid and appkey from https://leancloud.cn
# More info available at https://valine.js.org
valine:
appid: # your leancloud application appid
appkey: # your leancloud application appkey
notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: 说点什么 # comment box placeholder
avatar: retro # gravatar style https://valine.js.org/avatar.html
pageSize: 10 # pagination size
# Waline
# You can get your appid and appkey from https://leancloud.cn
# More info available at https://waline.js.org
waline:
serverurl: # your waline server URL
notify: false # mail notifier, See: https://github.com/xCss/Valine/wiki
verify: false # Verification code
placeholder: 说点什么 # comment box placeholder
pageSize: 10 # pagination size
# Changyan
# You can get your appid from http://changyan.kuaizhan.com/setting/common/isv-mgr
# Install: http://changyan.kuaizhan.com/static/help/f-fitself.html
changyan:
appid: '' # your changyan application appid # 畅言ID
conf: '' # conf # 畅言设置
notify: false # beian warning message # 备案提示
libopen: true # open laboratory # 畅言实验室功能开关
cyEmoji: true # comments emoji # 评论表情
cyWallsplugin: true # Hot text matching # 热文配图
cyReping: true # hot comments # 热门评论
cyReward: true # reward # 打赏
cyQing: true # Light comment # 轻评论
cyHotusers: true # User evaluation # 热评用户
cyHotnews: true # Hot news # 热门新闻
cyHotnewswall: true # News wall # 新闻墙
cyPk: '' # Topic debate # 辩论
cyPoll: true # vote # 投票
cyBarrage: true # Picture barrage # 图片弹幕
cyTvbarrage: true # Video barrage # 视频弹幕
# Livere 来必力
# You can get your uid from https://www.livere.com/my_Livere
livere:
uid: '' # your livere application uid # 来必力ID
#---------------------------
# 归档页
# Archive Page
#---------------------------
archive:
banner_img: /img/default.png
banner_img_height: 80 # available: 0 - 100
#---------------------------
# 分类归档页
# Categories Page
#---------------------------
category:
banner_img: /img/default.png
banner_img_height: 80 # available: 0 - 100
#---------------------------
# 标签归档页
# Tags Page
#---------------------------
tag:
banner_img: /img/default.png
banner_img_height: 80 # available: 0 - 100
tagcloud: # 标签云
min_font: 15
max_font: 30
unit: px # 字号单位
start_color: "#BBBBEE"
end_color: "#337ab7"
#---------------------------
# 关于页
# About Page
#---------------------------
about: # 以下仅为页面顶部的基本信息,更多内容请在 ./pages/about.md 中编辑,支持 markdown 和 HTML
enable: true # 是否开启关于页
md_path: ./pages/about.md # 关于页文档的相对路径,可以按相对文档设置主题之外的路径,从而避免更新冲突
banner_img: /img/default.png
banner_img_height: 80 # available: 0 - 100
comments: true # 是否开启页面评论功能,评论相关设置见文章页设置
name: myname
introduce: info / info / info # 支持 HTML
icons: # 更多图标可从 https://fontawesome.com/v4.7.0/icons/ 查找,并以 "图标名: url" 的格式添加在下方
"fab fa-github": https://github.com
"fab fa-twitter": https://twitter.com
"fas fa-envelope": mailto:[email protected]
#---------------------------
# 404页
# 404 Page
#---------------------------
page404:
banner_img: /img/default.png
banner_img_height: 80 # available: 0 - 100
subtitle: 'Page not found'
#---------------------------
# 友链页
# Links Page
#---------------------------
links:
enable: true # 是否开启友链页
banner_img:
banner_img_height: 80 # available: 0 - 100
comments: true # 是否开启页面评论功能,评论相关设置见文章页设置
items:
Fluid Docs: [https://fluid-dev.github.io/hexo-fluid-docs/, 主题使用指南]
Fluid Repo: [https://github.com/qixa/hexo-theme-fluid-mod, 主题 GitHub 仓库]
Fluid Changelog: [https://github.com/qixa/hexo-theme-fluid-mod/blob/master/Changelog.md, 主题更新日志]
#---------------------------
# 侧边栏
# Sidebar
#---------------------------
sidebar:
enable: true
name: # 名字,留空则使用网站title
introduce: # 支持 HTML,留空则使用网站subtitle
icons: # 更多图标可从 https://fontawesome.com/v4.7.0/icons/ 查找,并以 "图标名: url" 的格式添加在下方
"fab fa-github": https://github.com
"fab fa-twitter": https://twitter.com
"fas fa-envelope": mailto:[email protected]
#---------------------------
# 侧栏友链
# Friends
#---------------------------
friends:
friendname: https://example.com/