-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_config.yun.yml
698 lines (551 loc) · 16.4 KB
/
_config.yun.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
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
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
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
#https://yun.yunyoujun.cn/guide/
#主题配置[Line3-Line463 包括文章配置]
#主题色
colors:
primary: '#6200ee'
#primary: '#824880'
#bg: "#F5F5F5" #背景色(选取与你的背景图片主色调更贴近的颜色来使其更协调)
#selection_bg: '#8e71c1' # 选取文字时的背景色
selection_bg: '#8b92f0'
# 标签云中标签的起始色和结束色
# tag_start_color:#
# tag_end_color:
#tags:
# 动画: crimson
# 漫画: orange
# Parcel: '#21374b'
# 学习: saddlebrown
# MAD: crimson
# 教程: royalblue
# 笔记: dimgray
# 分享: '#0078e7'
# 随笔: mediumpurple
# Blender: '#d04d2d'
# Linux: '#2577b1'
# 中传: '#ccb44b'
# 部落: '#DD306A'
# 科幻: midnightblue
# 蚂蚁森林: '#54a892'
#tags:可以为你的标签指定色彩,默认色 #333
tags:
Vue: '#4fc08d'
Hexo: '#0E834D'
CSS: '#5298d1'
Node.js: '#026E00'
Git: '#F14E32'
Github: "#23b0a0"
React: '#61dafb'
Python: '#3776ab'
PHP: '#8892BF'
VS Code: '#0066B8'
JavaScript: '#F4DF4F'
TypeScript: '#317AC6'
Laravel: '#F4645F'
Debug: '#5c2223'
Network: '#2b1216'
diary: '#461629'
#categories:可以为你的分类指定色彩,默认色 #333
# HTML 颜色名: https://www.runoob.com/html/html-colornames.html
# HTML 颜色值: https://www.runoob.com/html/html-colorvalues.html
# Base16-Project: https://github.com/base16-project/home
# 顏色對比檢查分析器工具 | Adobe Color: https://color.adobe.com/zh/create/color-contrast-analyzer
categories:
日记: '#461629'
笔记: dimgray '#696969'
视频: '#BD5572'
分享: '#C95024'
第一次: RoyalBlue # '#4169E1'
实用工具: '#7663E0'
Hello World: '#4F76BD'
#head 头部资源 (如果您有想自定义的资源要加载,请添加到 head 中)
head:
css:
# aplayer: https://cdn.jsdelivr.net/npm/[email protected]/dist/APlayer.min.css
custom:
- /css/custom.css
# - https://raw.githubusercontent.com/Tru-tru/blog-library/main/css/custom.css
# fonts: # https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@900&display=swap #引入字重 900 的 Noto Serif SC 字体 #默认配置或已经使用本地配置,因而注释此行
# - /css/font.css # https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@900&display=swap
# - /css/yun-markdown.min.css # https://fastly.jsdelivr.net/npm/[email protected]/dist/yun/yun-markdown.min.css
# js:
# base: #必须提前加载并执行
# -
# async: #异步加载,加载完成后立即执行
# defer: #异步加载资源,但最后执行
# aplayer: https://cdn.jsdelivr.net/npm/[email protected]/dist/APlayer.min.js
# loadAplayer: /js/load-aplayer.js
##favicon:设置网站图标
favicon: /favicon.ico
#Photo by <a href="https://unsplash.com/@rocknrollmonkey?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Rock'n Roll Monkey</a> on <a href="https://unsplash.com/s/photos/robot?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>
#CDN (Content Delivery Network,统一加载网络资源,有利于提高网页加载速度。)
#cdn:
# pre: https://cdn.jsdelivr.net/gh/Tru-tru/tru-tru.github.io@latest
# css: https://cdn.jsdelivr.net/npm/remixicon/fonts/remixicon.css
# js:
# base:
# -
# async:
# 默认引入的图标资源,使用 iconfont
# iconfont: //at.alicdn.com/t/font_1140697_dxory92pb0h.js
# defer:
##覆盖iconfront
##预加载
##通过 preload, prefetch,preconnect,dns-prefetch来优化网页记载速度。
#preload:本页面之后一定会用到的资源
#prefetch:跳转页面可能会用到的资源
#dns-prefetch:解析将要用到的域名的 DNS 地址
#preconnect:提前与指定域名建立链接,相比 dns-prefetch 多了 TCP 连接
#preload 与 prefetch 只用来加载本地的资源(且一般使用默认),不要使用带有协议头(http://)的资源。
# CDN 可以去 head 处添加
# preload:
# style:
# - /css/hexo-theme-yun.css
# -
# script:
# - /js/hexo-theme-yun.js
#prefetch:
# script:
# - /js/sidebar.js
#dns_prefetch: https://Tru-tru.github.io/
# do more(TCP handshake...) than dns-fetch
# preconnect:
# - https://cdn.jsdelivr.net
# - https://fastly.jsdelivr.net/npm/
# - https://fonts.googleapis.com
# - https://fonts.gstatic.com
# - https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap
#图标Icon
##本主题默认使用 Remix Icon 的部分图标,并通过 iconfont 生成的 cdn 加载
##下面给出了一些基础图标的使用方法。
###iconfront
###Remix Icon 在前面CDN中统一配置
###Ionicons
###Material Design Icons
##其他图标 在 head 中引入相关资源,图标相关配置 icon 中填写对应图标 class 即可
###Font-Awesome
#社交图标
social:
- name: RSS
# set rss in your root config
# https://github.com/hexojs/hexo-generator-feed
link: /atom.xml # config.feed.path
icon: ri:rss-line
color: orange
- name: GitHub
link: https://github.com/Tru-tru
icon: ri:github-line
color: '#6e5494'
- name: E-Mail
link: mailto:[email protected]
icon: ri:mail-line
color: '#8E71C1'
#首页
##标语动画
banner:
enable: true
title: 紫源君的小站
border: false
cloud:
enable: true
color: white
go_down:
enable: true
icon: ri:arrow-down-s-line
##公告
notice:
enable: false
content: Thanks for your visting.
#UI
##亮暗模式 可选 light | dark | auto | time
mode: auto
##字体
#font:
# cdn:
# enable: true
# lib:
# - https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@900&display=swap
# serif: # 衬线字体(Serif):较粗表强调,通常用于首页标语(Banner)、Say、站点与文章标题(以及 links、girls 等页面的作品名称)等处。
# family: '''Songti SC'', ''Noto Serif SC'', STZhongsong, STKaiti, KaiTi, Roboto, serif'
# weight: 900
# sans_serif: # 无衬线字体(Sans Serif):通常为普通文本内容。(如果你的字体显示较粗,可能是你在 Windows 系统上安装了 PingFang SC 字体,却没有安装对应字重。)
# family: '''PingFang SC'', ''Microsoft YaHei'', Roboto, Arial, sans-serif'
# weight: 400
# monospace: # 等宽字体(monospace):字符均具有相同宽度,通常用于需要相同宽度以对齐之处(如日期、序号)。
# family: '''Source Code Pro'', ''Courier New'', Courier, Consolas, Monaco, monospace'
##图片背景
###opacity: 背景透明度
###dark: 暗色背景图片链接,仅在开启暗色模式时有效
# dark:
# blur: 30px # 设置背景模糊程度
###搜索背景
# placeholder:
bg_image:
enable: true
# url: /images/dragon-fantasy-scenery-art-sky-clouds-digital-art.webp # https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/bg/stars-timing-0-blur-30px.jpg
url: /images/stars-timing-0-blur-30px.webp
dark: /images/planet-earth-space-52-8k.webp
# blur: 30px # 设置背景模糊程度
# opacity: 0.8
##随机多边形背景 trianglify
##烟花 參考:https://codepen.io/juliangarnier/pen/gmOwJX
fireworks:
enable: true
colors:
# - '102, 167, 221'
# - '62, 131, 225'
# - '33, 78, 194'
- '115, 115, 230'
- '128, 128, 255'
- '130, 87, 194'
- '153, 153, 255'
- '193, 153, 255'
##Medium Zoom 放大预览图片
medium_zoom: true
##ScrollReveal 首页卡片与文章内部图片的滚动浮现效果
scrollreveal:
enable: true
targets:
- .post-card
- .markdown-body img
##Cursor 光标
cursor:
enable: false
# default: https://cdn.yunyoujun.cn/css/md-cursors/pointer.cur
# pointer: https://cdn.yunyoujun.cn/css/md-cursors/link.cur
# text: https://cdn.yunyoujun.cn/css/md-cursors/text.cur
#侧边栏
##背景与标签
sidebar:
bg_image: /images/stars-timing-1.webp # https://cdn.jsdelivr.net/gh/YunYouJun/cdn/img/bg/stars-timing-1.jpg
bg_position: bottom 3rem center
tagcloud:
enable: false
amount: 20
##头像
avatar:
enable: true
url: /images/avatar.webp
rounded: false
opacity: 1
mickey_mouse: false
status:
enable: true
emoji: 💜
message: LOVE--Make the world better!
##导航
menu:
custom:
title: 留言板
path: /about/#comment
icon: ri:clipboard-line
##页面链接
pages:
- name: 我的小伙伴们
url: /links/
icon: ri:genderless-line
color: dodgerblue
- name: 喜欢的女孩子
url: /girls/
icon: ri:women-line
color: hotpink
- name: 我喜欢的音乐
url: /music/
icon: ri:netease-cloud-music-line
color: '221, 0, 27'
#- name: 我的相册
# url: /albums/
# icon: ri:albums-line
# color:
#文章
##内容卡片
#post_card:
# opacity: 0.8
##为文章设置 type 属性,即可将其转为其他类型卡片,并跳转 url 设置的链接。
types:
link:
color: blue
icon: ri:external-link-line
bilibili:
color: '#FF8EB3'
icon: ri:bilibili-line
douban:
color: '#007722'
icon: ri:douban-line
github:
color: black
icon: ri:github-line
netease-cloud-music:
color: '#C10D0C'
icon: ri:netease-cloud-music-line
notion:
color: black
icon: ri:notion
twitter:
color: '#1da1f2'
icon: ri:twitter-line
wechat:
color: '#1AAD19'
icon: ri:wechat-2-line
weibo:
color: '#E6162D'
icon: ri:weibo-line
yuque:
color: '#25b864'
icon: ant-design:yuque-outlined
zhihu:
color: '#0084FF'
icon: ri:zhihu-line
#如果你想在你的外链卡片上显示一些信息,你可以写在 <!-- more --> 前,它会被当作摘要显示。
##hide
#你可以在文章头部添加 hide 属性,来临时隐藏某篇文章。
#如果你开启了站点地图,那它还会出现在 sitemap.xml 中,你还需要在 front matter 处设置 sitemap: false 来排除它
#你可以这样配置文章的FrontMatter属性:
#---
#title: xxx
#hide: true
# hide: index
#sitemap: false
#indexing: false
#---
#信息
post_meta:
item_text: false
created_at: true
updated_at: true
categories: true
tags: true
#目录
toc:
list_number: true
max_depth: 6
min_depth: 1
placeholder: 很遗憾,这篇文章没有目录
collapse: false
#编辑链接
post_edit:
enable: true
url: https://github.com/Tru-tru/tru-tru.github.io/tree/hexo/source/
#代码高亮
codeblock:
copy_btn: true
#版权
creative_commons:
license: by-nc-sa
post: true
language: deed.zh
clipboard: false
#图片懒加载 默认开启,将会为 Markdown 的图片 img 加上 loading="lazy" 属性
lazyload:
enable: true
#打赏
reward:
enable: true
comment: 这是一个打赏链接
methods:
- name: Thank You!
path: https://s2.loli.net/2022/08/10/WtwQdf1xbBFSea7.webp
color: '#00A3EE'
icon: ri:thumb-up-line
# - name: Alipay-Thx
# path: https://s2.loli.net/2022/08/10/WtwQdf1xbBFSea7.webp
# color: '#00A3EE'
# icon: ri:alipay-line
# - name: QQ 支付
# path:
# color: '#12B7F5'
# icon: ri:qq-line
# - name: 微信支付
# path:
# color: '#2DC100'
# icon: ri:wechat-pay-line
#页脚
footer:
since: 2022
# icon:
# name:ri:cloud-line
# animated: true
# color: '#0078E7'
# url: https://sponsors.yunyoujun.cn
# title: 云游君的赞助者们
# powered:
# enable: true
# version:0.1
# beian:
# enable: true
# icp: 苏ICP备17038157号
# 公安备案
#gongan:
# enable: false
# text: 京公网安备 XXXXXXXX 号
# id: XXXXXXXX
#运行时间
live_time:
enable: true
prefix: 本博客已稳定运行
suffix:
start_time: '2022-08-12T00:00:00'
support:
enable: true
title: Github
link: https://github.com
logo:
prefix: 本网站由
suffix: 提供 Server 支持
custom_text:
#Say
say:
enable: true
api: https://el-bot-api.vercel.app/api/words/young
hitokoto:
enable: true
api: https://v1.hitokoto.cn
#自定义语句
#Special 默哀
#自定义样式
#自定义图标
icons:
# 返回顶部
back_to_top: ri:arrow-up-s-line
# 分类
category: ri:folder-2-line
# 标签
tag: ri:price-tag-3-line
# 拜访
view: ri:eye-line
#Vendors
#更多配置
#页面(链接:https://yun.yunyoujun.cn/guide/page.html#页面配置 祥看示例文章“hello-world”和“我的第一篇博客”)
#来使用彩色的词云替代原生的标签云。 命令:npm install wordcloud
#enable: 是否开启
#height: 词云高度
wordcloud:
enable: true
height: 350
girls:
enable: true
albums:
enable: true
#第三方支持:与额外依赖库支持的区别,此处主要为使用第三方服务商提供的服务实现。[Line450-Line556]
# comment:
# enable: true
# tips:
# - 如果您有任何关于博客内容的相关讨论,欢迎前往 <a href="https://github.com/YunYouJun/yunyoujun.github.io/discussions" target="_blank">GitHub Discussions</a> 与我交流。
# candidates:
# - waline
# - giscus
# https://waline.js.org/guide/get-started.html (需要重新填写下面字段)
#waline:
# enable: true
# serverURL: https://waline.yunyoujun.cn
# visitor: true
# comment: true
# emoji:
# - https://fastly.jsdelivr.net/gh/walinejs/emojis@latest/bilibili/
# - https://fastly.jsdelivr.net/gh/walinejs/emojis@latest/weibo/
# - https://fastly.jsdelivr.net/gh/walinejs/emojis@latest/qq/
# locale:
# placeholder: 填写邮箱,可以收到回复通知哦~
# requiredMeta: [nick]
# https://github.com/SukkaW/DisqusJS
disqusjs:
enable: true
shortname: tru-tru
siteName:
identifier:
url:
api: https://disqus.skk.moe/disqus/
apikey: OYP0vz4mYuZH71qCA31Y3WET6T8m3vuV662VSmLTzqNxhVGTZkrL8pIU8r2IT2As
# https://github.com/laymonage/giscus
giscus:
enable: false
repo: Tru-tru/tru-tru.github.io
repo-id:
category-id:
mapping: pathname
reactions-enabled: 1
emit-metadata: 0
theme: light
# https://utteranc.es/
utterances:
enable: false
repo: owner/repo
issue-term: pathname
# label: comment
theme: github-light
github_issues:
enable: false
username: Tru-tru
repository: tru-tru.github.io
filters: is:issue
github_discussions:
enable: false
username: Tru-tru
repository: tru-tru.github.io
#搜索
##引擎搜索
##本地搜索
engine_search:
enable: false
#Algolia:https://www.algolia.com/
# If you want to use it, you need config algolia appID in _config.yml!!!
# https://github.com/oncletom/hexo-algolia
#algolia_search:
# enable: true
# ...
#分析统计
##谷歌分析
google_analytics:
enable: false
id:
##busuanzi(不蒜子) 不蒜子是一款轻量极简的网站计数器。
#LeanCloud Visitors 基于 LeanCloud 的访问者统计,显示每篇文章的访问量
#广告
##谷歌广告
google_adsense:
enable: false
client:
#SEO
##Google Search Console
##百度搜索资源平台
baidu_push: false
#Tag Manager
##Google 跟踪代码管理器
google_tagmanager:
enable: false
id:
#额外依赖库支持:与第三方支持的区别是,此处大部分功能为安装插件或引入 CDN 实现,并由主题进行简单适配。(Line582-the 638)
#字数统计 npm install hexo-wordcount
wordcount:
enable: true
count: true
time: true
#RSS npm install hexo-generator-feed --save
#置顶
#live2d:https://github.com/EYHN/hexo-helper-live2d/blob/master/README.zh-CN.md
#文章短链接
#标签云(词云) 已在258-263行配置
#播放器 npm install hexo-tag-aplayer(有漏洞,暂不使用,等解决方案)
#在 Hexo 的根目录下的 _config.yml 中插入代码 https://yun.yunyoujun.cn/guide/additional-package-support.html#%E6%92%AD%E6%94%BE%E5%99%A8
#全局音乐播放器
#数学公式
#KaTeX
#hexo-math
#hexo-filter-mathjax
#pjax:
#enable: true
#Mermaid Mermaid 允许您使用文本和代码创建图表和可视化。
#Github: https://github.com/knsv/mermaid
#其他可用插件推荐 https://yun.yunyoujun.cn/guide/additional-package-support.html#%E5%85%B6%E4%BB%96%E5%8F%AF%E7%94%A8%E6%8F%92%E4%BB%B6%E6%8E%A8%E8%8D%90
#hexo-tag-common 扩展的 hexo 标签语法。
#hexo-widget-tree 挂件形式,通过树状菜单查看文章。
#hexo-blog-encrypt 你可以使用它来加密一些私密的文章页面。
#关于主题
#默认图标
#Iconify
#v1.10.x
#使用 Iconify 加载图标资源。
#因此您可以使用 https://icones.js.org/ 中可以看到的任意图标。
#命名规则为:ri:github-line。
#本主题默认使用 Remix Icon,因此此前的 icon-github-line 迁移为 ri:github-line。
#如:
# icon: ri:github-line