hexo-theme-shokax 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (165) hide show
  1. package/CODE_OF_CONDUCT.md +128 -128
  2. package/LICENSE +660 -660
  3. package/LICENSE-shoka +21 -21
  4. package/README.md +74 -53
  5. package/UsageRestrictions.md +25 -25
  6. package/_config.yml +352 -350
  7. package/languages/README.md +19 -19
  8. package/languages/default.yml +1 -1
  9. package/languages/en.yml +155 -155
  10. package/languages/ja.yml +155 -155
  11. package/languages/zh-CN.yml +155 -155
  12. package/languages/zh-HK.yml +155 -155
  13. package/languages/zh-TW.yml +155 -155
  14. package/layout/_alternate/atom.ejs +30 -30
  15. package/layout/_alternate/json.ejs +16 -16
  16. package/layout/_alternate/rss.ejs +34 -34
  17. package/layout/_mixin/breadcrumb.pug +33 -33
  18. package/layout/_mixin/card.pug +37 -37
  19. package/layout/_mixin/comment.pug +6 -6
  20. package/layout/_mixin/postmeta.pug +29 -29
  21. package/layout/_mixin/segment.pug +35 -35
  22. package/layout/_mixin/sidebar.pug +40 -40
  23. package/layout/_mixin/widgets.pug +28 -28
  24. package/layout/_partials/footer.pug +43 -43
  25. package/layout/_partials/head/head.pug +50 -50
  26. package/layout/_partials/head/head_com.pug +24 -24
  27. package/layout/_partials/head/pwa.pug +18 -18
  28. package/layout/_partials/header.pug +18 -18
  29. package/layout/_partials/layout.pug +137 -137
  30. package/layout/_partials/loading.pug +13 -13
  31. package/layout/_partials/pagination.pug +4 -4
  32. package/layout/_partials/post/copyright.pug +20 -20
  33. package/layout/_partials/post/footer.pug +20 -20
  34. package/layout/_partials/post/nav.pug +17 -17
  35. package/layout/_partials/post/post.pug +42 -42
  36. package/layout/_partials/post/reward.pug +18 -18
  37. package/layout/_partials/sidebar/menu.pug +37 -37
  38. package/layout/_partials/sidebar/overview.pug +42 -42
  39. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  40. package/layout/_partials/third-party/clarity.pug +8 -8
  41. package/layout/_partials/third-party/google-analytics.pug +9 -9
  42. package/layout/archive.pug +121 -121
  43. package/layout/category.pug +62 -62
  44. package/layout/index.pug +36 -36
  45. package/layout/page.pug +60 -60
  46. package/layout/post.pug +42 -42
  47. package/layout/tag.pug +46 -46
  48. package/package.json +14 -14
  49. package/scripts/generaters/images.js +11 -13
  50. package/scripts/generaters/script.js +3 -1
  51. package/scripts/helpers/engine.js +5 -0
  52. package/scripts/plugin/check.js +48 -10
  53. package/scripts/plugin/index.js +2 -2
  54. package/source/assets/algolia_logo.svg +9 -9
  55. package/source/assets/logo.svg +16 -16
  56. package/source/css/_colors.styl +207 -207
  57. package/source/css/_common/components/components.styl +5 -6
  58. package/source/css/_common/components/pages/collapse.styl +119 -119
  59. package/source/css/_common/components/pages/home.styl +391 -391
  60. package/source/css/_common/components/pages/pages.styl +56 -56
  61. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  62. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  63. package/source/css/_common/components/post/copyright.styl +41 -41
  64. package/source/css/_common/components/post/expand.styl +263 -263
  65. package/source/css/_common/components/post/footer.styl +11 -11
  66. package/source/css/_common/components/post/header.styl +79 -79
  67. package/source/css/_common/components/post/nav.styl +64 -64
  68. package/source/css/_common/components/post/post.styl +29 -29
  69. package/source/css/_common/components/post/reward.styl +50 -50
  70. package/source/css/_common/components/post/rtl.styl +12 -12
  71. package/source/css/_common/components/post/tags.styl +39 -39
  72. package/source/css/_common/components/tags/collapse.styl +72 -72
  73. package/source/css/_common/components/tags/container.styl +49 -49
  74. package/source/css/_common/components/tags/label.styl +12 -12
  75. package/source/css/_common/components/tags/links.styl +77 -77
  76. package/source/css/_common/components/tags/list.styl +131 -131
  77. package/source/css/_common/components/tags/note.styl +70 -70
  78. package/source/css/_common/components/tags/player.styl +361 -361
  79. package/source/css/_common/components/tags/quiz.styl +200 -200
  80. package/source/css/_common/components/tags/tabs.styl +89 -89
  81. package/source/css/_common/components/tags/tags.styl +9 -9
  82. package/source/css/_common/components/third-party/loading.styl +222 -222
  83. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  84. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  85. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  86. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  87. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  88. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  89. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  90. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  91. package/source/css/_common/components/third-party/pace.styl +18 -18
  92. package/source/css/_common/components/third-party/search.styl +167 -167
  93. package/source/css/_common/components/third-party/theme.styl +151 -151
  94. package/source/css/_common/components/third-party/third-party.styl +22 -22
  95. package/source/css/_common/components/third-party/widgets.styl +57 -57
  96. package/source/css/_common/outline/footer/footer.styl +67 -67
  97. package/source/css/_common/outline/header/brand.styl +77 -77
  98. package/source/css/_common/outline/header/header.styl +20 -20
  99. package/source/css/_common/outline/header/image.styl +85 -85
  100. package/source/css/_common/outline/header/menu.styl +117 -117
  101. package/source/css/_common/outline/header/nav.styl +81 -81
  102. package/source/css/_common/outline/header/right.styl +15 -15
  103. package/source/css/_common/outline/header/tool.styl +207 -207
  104. package/source/css/_common/outline/header/waves.styl +57 -57
  105. package/source/css/_common/outline/mobile.styl +46 -46
  106. package/source/css/_common/outline/outline.styl +78 -78
  107. package/source/css/_common/outline/sidebar/author.styl +59 -59
  108. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  109. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  110. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  111. package/source/css/_common/outline/sidebar/related.styl +56 -56
  112. package/source/css/_common/outline/sidebar/sidebar.styl +82 -82
  113. package/source/css/_common/outline/sidebar/social.styl +69 -69
  114. package/source/css/_common/outline/sidebar/state.styl +37 -37
  115. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  116. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  117. package/source/css/_common/scaffolding/animate.styl +322 -322
  118. package/source/css/_common/scaffolding/base.styl +192 -190
  119. package/source/css/_common/scaffolding/buttons.styl +48 -48
  120. package/source/css/_common/scaffolding/divider.styl +36 -36
  121. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  122. package/source/css/_common/scaffolding/normalize.styl +273 -273
  123. package/source/css/_common/scaffolding/pagination.styl +81 -81
  124. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  125. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  126. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  127. package/source/css/_common/scaffolding/tables.styl +50 -50
  128. package/source/css/_common/scaffolding/tip.styl +19 -19
  129. package/source/css/_common/scaffolding/toggles.styl +59 -59
  130. package/source/css/_iconfont.styl +455 -455
  131. package/source/css/_mixins.styl +148 -148
  132. package/source/css/_variables.styl +89 -89
  133. package/source/css/app.styl +25 -25
  134. package/source/css/mermaid.styl +5 -5
  135. package/source/css/page.styl +2 -2
  136. package/source/css/post.styl +6 -5
  137. package/source/css/scaffolding.styl +4 -4
  138. package/source/js/_app/components/cloudflare.ts +18 -18
  139. package/source/js/_app/components/comments.ts +88 -86
  140. package/source/js/_app/components/sidebar.ts +243 -243
  141. package/source/js/_app/components/tcomments.ts +53 -53
  142. package/source/js/_app/globals/globalVars.ts +84 -84
  143. package/source/js/_app/globals/handles.ts +124 -124
  144. package/source/js/_app/globals/themeColor.ts +62 -62
  145. package/source/js/_app/globals/thirdparty.ts +63 -63
  146. package/source/js/_app/globals/tools.ts +73 -73
  147. package/source/js/_app/library/anime.ts +121 -121
  148. package/source/js/_app/library/declare.d.ts +128 -126
  149. package/source/js/_app/library/proto.ts +70 -70
  150. package/source/js/_app/library/vue.ts +49 -49
  151. package/source/js/_app/page/common.ts +41 -41
  152. package/source/js/_app/page/imageviewer.ts +15 -15
  153. package/source/js/_app/page/post.ts +252 -248
  154. package/source/js/_app/page/search.ts +109 -109
  155. package/source/js/_app/page/tab.ts +59 -59
  156. package/source/js/_app/pjax/domInit.ts +102 -102
  157. package/source/js/_app/pjax/refresh.ts +117 -117
  158. package/source/js/_app/pjax/siteInit.ts +90 -90
  159. package/source/js/_app/player.ts +13 -13
  160. package/toolbox/compiler.mjs +49 -53
  161. package/toolbox/dev-version.mjs +14 -14
  162. package/toolbox/hoistdep.mjs +5 -5
  163. package/toolbox/lib.mjs +63 -63
  164. package/source/css/_common/components/highlight/highlight.styl +0 -357
  165. package/source/css/_common/components/highlight/operation.styl +0 -21
package/_config.yml CHANGED
@@ -1,350 +1,352 @@
1
- alternate: testName # 站点大标题
2
-
3
- statics: "/" # 静态文件根目录
4
- assets: "assets"
5
- css: "css"
6
- js: "js"
7
-
8
- open_graph:
9
- #twitter_id:
10
- #google_plus:
11
- #fb_admins:
12
- #fb_app_id:
13
-
14
- grayMode: false # 全站黑白滤镜
15
- # 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
16
- # 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
17
- pwa:
18
- enable: false # 开启PWA功能
19
- serviceworker: sw.js #serviceworker脚本位置,使用以/为基准的绝对路径
20
- manifest: manifest.json #manifest位置,使用以/为基准的绝对路径
21
-
22
- # 实验性特性
23
- experiments:
24
- mobileWidth: 820px # 移动版和桌面版导航栏最短切换长度
25
- copyrightLength: 50 # 自定义复制时显示copyright的长度
26
- antiFakeWebsite: true # 防止恶意网站伪装
27
-
28
- homeConfig:
29
- gradient: false # 使用CSS渐变作为文章封面
30
- # fixedCover 性能比默认的更好,且开启时将启用LCP优化和预加载
31
- fixedCover: "" # 主页面cover(为空则使用bing随机图片)
32
- coverConfig:
33
- enableCover: true # 是否开启头图
34
- enablePreload: true #是否开启预加载头图
35
- enableNextGradientCover: false # 使用CSS渐变作为上/下一页封面
36
- cateCards:
37
- - slug: # 分类 slug
38
- cover: # 分类封面
39
-
40
- # ShokaX 模块化分包引入设置
41
- # 请关闭所有不使用的模块以优化主题 js 体积和性能
42
- modules:
43
- debug: false # 启用调试模式
44
- player: true # 启用音乐播放器
45
- fireworks: true # 启用鼠标点击烟花特效
46
- visibilityListener: true # 启用可见度监听器
47
- tabs: true # 启用选项卡扩展支持,如需开启 summary 功能请一并开启
48
- quiz: true # 启用文章内问题扩展支持
49
- # 使用 Cloudflare Rocket 或其他优化功能时需开启下列补丁,否则主题无法渲染
50
- cloudflarePatch: false
51
-
52
- # 优化性能区
53
- performance:
54
- # 使用preconnect预加载的网址(不建议超过三个)
55
- preConnect:
56
- - "https://s4.zstatic.net"
57
- - "https://at.alicdn.com"
58
- # 使用dns-prefetch预解析的网址
59
- dnsPrefetch:
60
-
61
- playerAPI: "https://api.injahow.cn" # 结尾不带/,只填写域名
62
- # 如果条件允许,请参考 https://github.com/injahow/meting-api 自建API
63
- # 使用vercel自行部署,请参考: https://github.com/xizeyoupan/Meting-API
64
-
65
- icon:
66
- favicon: "/favicon.ico"
67
- apple_touch_icon: "/apple-touch-icon.png"
68
-
69
- seo:
70
- bing:
71
- google:
72
- yandex:
73
- baidu:
74
-
75
- visitor:
76
- clarity: false
77
- baiduAnalytics: false
78
- googleAnalytics: false
79
-
80
- darkmode: true
81
- auto_dark: # 自动亮/暗模式
82
- enable: true #是否开启
83
- start: 20 #开始时间
84
- end: 7 #结束时间
85
-
86
- auto_scroll: false
87
-
88
- loader:
89
- start: true # 进入页面时显示加载动画
90
- switch: false # 切换页面时显示加载动画
91
-
92
- # 显示的动画(烟花)
93
- # 参阅 https://github.com/D-Sketon/mouse-firework
94
- fireworks:
95
- enable: true
96
- options:
97
- excludeElements: ["a"]
98
- particles:
99
- - shape: circle
100
- move: ["emit"]
101
- easing: easeOutExpo
102
- colors:
103
- - "rgba(255,182,185,.9)"
104
- - "rgba(250,227,217,.9)"
105
- - "rgba(187,222,214,.9)"
106
- - "rgba(138,198,209,.9)"
107
- number: 30
108
- duration: [1200, 1800]
109
- shapeOptions:
110
- radius: [16, 32]
111
- - shape: circle
112
- move: ["diffuse"]
113
- easing: easeOutExpo
114
- colors: ["#fff"]
115
- number: 1
116
- duration: [1200, 1800]
117
- shapeOptions:
118
- radius: 20
119
- alpha: 0.5
120
- lineWidth: 6
121
-
122
- font:
123
- enable: true
124
- # 从google字体库加载,如果自定义@font-face请关闭
125
- loadFromGoogle: true
126
- # 字体选项:
127
- # `external`:从google字体库加载字体.
128
- # `family: 字体家族名,无需引号
129
- # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
130
-
131
- # 适用于所有在body标签内的文字.
132
- global:
133
- external: true
134
- family: Mulish
135
- size:
136
-
137
- # 大标题字体.
138
- logo:
139
- external: true
140
- family: Fredericka the Great
141
- size: 3.5
142
-
143
- # 页面标题字体.
144
- title:
145
- external: true
146
- family: Noto Serif JP
147
- size: 2.5
148
-
149
- # 标题字体.
150
- headings:
151
- external: true
152
- family: Noto Serif SC
153
- size:
154
-
155
- # 文章字体.
156
- posts:
157
- external: false
158
- family:
159
-
160
- # 代码块的字体
161
- codes:
162
- external: true
163
- family: Inconsolata
164
-
165
- # //at.alicdn.com/t/c/font_4415496_59g1326wajd.css => 4415496_59g1326wajd
166
- # 自定义iconfont图标参见文档教程
167
- iconfont: "4415496_59g1326wajd"
168
-
169
- menu:
170
- home: / || home
171
- # about:
172
- # default: / || user
173
- # aboutsite: /about/ || user
174
- # admiration: /admiration/ || coffee
175
- # posts:
176
- # default: / || feather
177
- # archives: /archives/ || list-alt
178
- # categories: /categories/ || th
179
- # tags: /tags/ || tags
180
- # friends: /friends/ || heart
181
-
182
- # https://twikoo.js.org
183
- twikoo:
184
- enable: false
185
- mode: vercel # vercel或tencent
186
- envId: "https://example.com" # twikoo环境ID,vercel填地址
187
- region:
188
-
189
- # https://waline.js.org/
190
- waline:
191
- enable: false
192
- serverURL: ""
193
- lang: "zh-CN"
194
- locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
195
- emoji: # 表情包
196
- # - https://unpkg.com/@waline/emojis@1.0.1/weibo
197
- # - https://unpkg.com/@waline/emojis@1.0.1/alus
198
- # - https://unpkg.com/@waline/emojis@1.0.1/bilibili
199
- # - https://unpkg.com/@waline/emojis@1.0.1/qq
200
- # - https://unpkg.com/@waline/emojis@1.0.1/tieba
201
- # - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji
202
- meta: # 可以填写的内容
203
- - nick
204
- - mail
205
- - link
206
- requiredMeta: # 必须填写的内容
207
- - nick
208
- - mail
209
- wordLimit: 0 # 字数限制,0为不限制
210
- pageSize: 10 # 每页评论条数
211
- pageview: false # 是否开启浏览量统计,可独立开启
212
-
213
- summary:
214
- enable: false
215
- introduce: "" # AI自我介绍
216
- model:
217
- apiKey:
218
- apiUrl:
219
- temperature:
220
- initalPrompt:
221
- concurrency: 5
222
-
223
- # Social Links
224
- # Usage: `Key: permalink || icon || color`
225
- # Key is the link label showing to end users.
226
- # Value before `||` delimiter is the target permalink,
227
- # secend value is the name of Font icon.
228
- social:
229
- github: https://github.com/yourname || github || "#191717"
230
- #gitee: https://gitee.com/yourname || gitee || "#e60026"
231
- #google: https://plus.google.com/yourname || google
232
- #twitter: https://twitter.com/yourname || twitter || "#00aff0"
233
- #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
234
- #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
235
- #weibo: https://weibo.com/yourname || weibo || "#ea716e"
236
- #about: https://about.me/yourname || address-card || "#3b5998"
237
- #email: mailto:foo@xxx.com || envelope || "#55acd5"
238
- #facebook: https://www.facebook.com/yourname || facebook
239
- #stackoverflow: https://stackoverflow.com/ || stack-overflow
240
- #youtube: https://youtube.com/yourname || youtube
241
- #instagram: https://instagram.com/yourname || instagram
242
- #skype: skype:yourname?call|chat || skype
243
- #douban: https://www.douban.com/people/yourname/ || douban
244
-
245
- sidebar:
246
- # Sidebar Position.
247
- position: left
248
- # position: right
249
- # Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
250
- avatar: avatar.jpg
251
-
252
- widgets:
253
- # if true, will show random posts
254
- random_posts: true
255
- # if true, will show recent comments
256
- recent_comments: true
257
-
258
- footer:
259
- # Specify the date when the site was set up. If not defined, current year will be used.
260
- since: 2022
261
- icon:
262
- name: sakura rotate
263
- # Change the color of icon, using Hex Code.
264
- color: "#ffc0cb"
265
- # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
266
- count: true
267
- powered: true
268
- icp: # ICP备案
269
- enable: false
270
- # 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
271
- icon: "" #网安备案图片
272
- icpnumber: "xxx" # ICP备案号
273
- beian: "xxx" # 网安备案号
274
- recordcode: "xxx" # 网安备案链接中的recordcode参数
275
-
276
- post:
277
- count: true
278
-
279
- # 文章是否失效
280
- outime:
281
- enable: false
282
- days: 90 # 超过 90 天文章失效
283
-
284
- reward:
285
- # If true, reward will be displayed in every article by default.
286
- enable: true
287
- account:
288
- wechatpay: /wechatpay.png
289
- alipay: /alipay.png
290
- # paypal: /paypal.png
291
-
292
- # TagCloud settings for tags page.
293
- tagcloud:
294
- # All values below are same as default, change them by yourself.
295
- min: 16 # Minimun font size in px
296
- max: 22 # Maxium font size in px
297
- start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
298
- end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
299
- amount: 200 # Amount of tags, change it if you have more than 200 tags
300
-
301
- # ---------------------------------------------------------------
302
- # Third Party Plugins & Services Settings
303
- # ---------------------------------------------------------------
304
-
305
- # Creative Commons 4.0 International License.
306
- # See: https://creativecommons.org/share-your-work/licensing-types-examples
307
- # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
308
- # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
309
- # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
310
- creative_commons:
311
- license: by-nc-sa
312
- language: deed.zh
313
-
314
- # bgm
315
- # 不使用请打开noplayer功能
316
- audio:
317
- # - title: 列表1
318
- # list:
319
- # - https://music.163.com/#/playlist?id=2943811283
320
- # - title: 列表2
321
- # list:
322
- # - https://music.163.com/#/playlist?id=2031842656
323
-
324
- # random image api
325
- image_server: # "https://acg.xydwz.cn/api/api.php"
326
-
327
- # Algolia Search
328
- # For more information: https://www.algolia.com
329
- search:
330
- hits:
331
- per_page: 10
332
-
333
- #! ---------------------------------------------------------------
334
- #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
335
- #! UNLESS YOU KNOW WHAT YOU ARE DOING
336
- #! ---------------------------------------------------------------
337
- vendors:
338
- cdns:
339
- cdnjs: https://s4.zstatic.net/ajax/libs
340
- js:
341
- async_js:
342
- copy_tex:
343
- source: cdnjs
344
- url: KaTeX/0.16.9/contrib/copy-tex.min.js
345
- sri: "sha384-ww/583aHhxWkz5DEVn6OKtNiIaLi2iBRNZXfJRiY1Ai7tnJ9UXpEsyvOITVpTl4A"
346
- css:
347
- katex:
348
- source: cdnjs
349
- url: KaTeX/0.16.9/katex.min.css
350
- sri: "sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"
1
+ alternate: testName # 站点大标题
2
+
3
+ statics: "/" # 静态文件根目录
4
+ assets: "assets"
5
+ css: "css"
6
+ js: "js"
7
+
8
+ open_graph:
9
+ #twitter_id:
10
+ #google_plus:
11
+ #fb_admins:
12
+ #fb_app_id:
13
+
14
+ grayMode: false # 全站黑白滤镜
15
+ # 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
16
+ # 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
17
+ pwa:
18
+ enable: false # 开启PWA功能
19
+ serviceworker: sw.js #serviceworker脚本位置,使用以/为基准的绝对路径
20
+ manifest: manifest.json #manifest位置,使用以/为基准的绝对路径
21
+
22
+ # 实验性特性
23
+ experiments:
24
+ mobileWidth: 820px # 移动版和桌面版导航栏最短切换长度
25
+ copyrightLength: 50 # 自定义复制时显示copyright的长度
26
+ antiFakeWebsite: true # 防止恶意网站伪装
27
+
28
+ homeConfig:
29
+ gradient: false # 使用CSS渐变作为文章封面
30
+ # fixedCover 性能比默认的更好,且开启时将启用LCP优化和预加载
31
+ fixedCover: "" # 主页面cover(为空则使用bing随机图片)
32
+ coverConfig:
33
+ enableCover: true # 是否开启头图
34
+ enablePreload: true #是否开启预加载头图
35
+ enableNextGradientCover: false # 使用CSS渐变作为上/下一页封面
36
+ cateCards:
37
+ - slug: # 分类 slug
38
+ cover: # 分类封面
39
+
40
+ # ShokaX 模块化分包引入设置
41
+ # 请关闭所有不使用的模块以优化主题 js 体积和性能
42
+ modules:
43
+ debug: false # 启用调试模式
44
+ player: true # 启用音乐播放器
45
+ fireworks: true # 启用鼠标点击烟花特效
46
+ visibilityListener: true # 启用可见度监听器,当你不需要页面标题随标签页切换而变化可关闭
47
+ tabs: true # 启用选项卡扩展支持,如需开启 summary 功能请一并开启
48
+ quiz: true # 启用文章内问题扩展支持
49
+ # 使用 Cloudflare Rocket 或其他优化功能时需开启下列补丁,否则主题无法渲染
50
+ cloudflarePatch: false
51
+
52
+ # 优化性能区
53
+ performance:
54
+ # 使用preconnect预加载的网址(不建议超过三个)
55
+ preConnect:
56
+ - "https://s4.zstatic.net"
57
+ - "https://at.alicdn.com"
58
+ # 使用dns-prefetch预解析的网址
59
+ dnsPrefetch:
60
+
61
+ playerAPI: "https://api.injahow.cn" # 结尾不带/,只填写域名
62
+ # 如果条件允许,请参考 https://github.com/injahow/meting-api 自建API
63
+ # 使用vercel自行部署,请参考: https://github.com/xizeyoupan/Meting-API
64
+
65
+ icon:
66
+ favicon: "/favicon.ico"
67
+ apple_touch_icon: "/apple-touch-icon.png"
68
+
69
+ seo:
70
+ bing:
71
+ google:
72
+ yandex:
73
+ baidu:
74
+
75
+ visitor:
76
+ clarity: false
77
+ baiduAnalytics: false
78
+ googleAnalytics: false
79
+
80
+ darkmode: true
81
+ auto_dark: # 自动亮/暗模式
82
+ enable: true #是否开启
83
+ start: 20 #开始时间
84
+ end: 7 #结束时间
85
+
86
+ auto_scroll: false
87
+
88
+ loader:
89
+ start: true # 进入页面时显示加载动画
90
+ switch: false # 切换页面时显示加载动画
91
+
92
+ # 显示的动画(烟花)
93
+ # 参阅 https://github.com/D-Sketon/mouse-firework
94
+ fireworks:
95
+ enable: true
96
+ options:
97
+ excludeElements: ["a"]
98
+ particles:
99
+ - shape: circle
100
+ move: ["emit"]
101
+ easing: easeOutExpo
102
+ colors:
103
+ - "rgba(255,182,185,.9)"
104
+ - "rgba(250,227,217,.9)"
105
+ - "rgba(187,222,214,.9)"
106
+ - "rgba(138,198,209,.9)"
107
+ number: 30
108
+ duration: [1200, 1800]
109
+ shapeOptions:
110
+ radius: [16, 32]
111
+ - shape: circle
112
+ move: ["diffuse"]
113
+ easing: easeOutExpo
114
+ colors: ["#fff"]
115
+ number: 1
116
+ duration: [1200, 1800]
117
+ shapeOptions:
118
+ radius: 20
119
+ alpha: 0.5
120
+ lineWidth: 6
121
+
122
+ font:
123
+ enable: true
124
+ # 从google字体库加载,如果自定义@font-face请关闭
125
+ loadFromGoogle: true
126
+ # 字体选项:
127
+ # `external`:从google字体库加载字体.
128
+ # `family: 字体家族名,无需引号
129
+ # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
130
+
131
+ # 适用于所有在body标签内的文字.
132
+ global:
133
+ external: true
134
+ family: Mulish
135
+ size:
136
+
137
+ # 大标题字体.
138
+ logo:
139
+ external: true
140
+ family: Fredericka the Great
141
+ size: 3.5
142
+
143
+ # 页面标题字体.
144
+ title:
145
+ external: true
146
+ family: Noto Serif JP
147
+ size: 2.5
148
+
149
+ # 标题字体.
150
+ headings:
151
+ external: true
152
+ family: Noto Serif SC
153
+ size:
154
+
155
+ # 文章字体.
156
+ posts:
157
+ external: false
158
+ family:
159
+
160
+ # 代码块的字体
161
+ codes:
162
+ external: true
163
+ family: Inconsolata
164
+
165
+ # //at.alicdn.com/t/c/font_4415496_59g1326wajd.css => 4415496_59g1326wajd
166
+ # 自定义iconfont图标参见文档教程
167
+ iconfont: "4415496_59g1326wajd"
168
+
169
+ menu:
170
+ home: / || home
171
+ # about:
172
+ # default: / || user
173
+ # aboutsite: /about/ || user
174
+ # admiration: /admiration/ || coffee
175
+ # posts:
176
+ # default: / || feather
177
+ # archives: /archives/ || list-alt
178
+ # categories: /categories/ || th
179
+ # tags: /tags/ || tags
180
+ # friends: /friends/ || heart
181
+
182
+ # https://twikoo.js.org
183
+ twikoo:
184
+ enable: false
185
+ mode: vercel # vercel或tencent
186
+ envId: "https://example.com" # twikoo环境ID,vercel填地址
187
+ region:
188
+
189
+ # https://waline.js.org/
190
+ waline:
191
+ enable: false
192
+ serverURL: ""
193
+ lang: "zh-CN"
194
+ locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
195
+ emoji: # 表情包
196
+ # - https://unpkg.com/@waline/emojis@1.0.1/weibo
197
+ # - https://unpkg.com/@waline/emojis@1.0.1/alus
198
+ # - https://unpkg.com/@waline/emojis@1.0.1/bilibili
199
+ # - https://unpkg.com/@waline/emojis@1.0.1/qq
200
+ # - https://unpkg.com/@waline/emojis@1.0.1/tieba
201
+ # - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji
202
+ meta: # 可以填写的内容
203
+ - nick
204
+ - mail
205
+ - link
206
+ requiredMeta: # 必须填写的内容
207
+ - nick
208
+ - mail
209
+ wordLimit: 0 # 字数限制,0为不限制
210
+ pageSize: 10 # 每页评论条数
211
+ pageview: false # 是否开启浏览量统计,可独立开启
212
+ recaptchaV3Key: # reCAPTCHA v3密钥
213
+ turnstileKey: # Turnstile密钥
214
+
215
+ summary:
216
+ enable: false
217
+ introduce: "" # AI自我介绍
218
+ model:
219
+ apiKey:
220
+ apiUrl:
221
+ temperature:
222
+ initalPrompt:
223
+ concurrency: 5
224
+
225
+ # Social Links
226
+ # Usage: `Key: permalink || icon || color`
227
+ # Key is the link label showing to end users.
228
+ # Value before `||` delimiter is the target permalink,
229
+ # secend value is the name of Font icon.
230
+ social:
231
+ github: https://github.com/yourname || github || "#191717"
232
+ #gitee: https://gitee.com/yourname || gitee || "#e60026"
233
+ #google: https://plus.google.com/yourname || google
234
+ #twitter: https://twitter.com/yourname || twitter || "#00aff0"
235
+ #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
236
+ #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
237
+ #weibo: https://weibo.com/yourname || weibo || "#ea716e"
238
+ #about: https://about.me/yourname || address-card || "#3b5998"
239
+ #email: mailto:foo@xxx.com || envelope || "#55acd5"
240
+ #facebook: https://www.facebook.com/yourname || facebook
241
+ #stackoverflow: https://stackoverflow.com/ || stack-overflow
242
+ #youtube: https://youtube.com/yourname || youtube
243
+ #instagram: https://instagram.com/yourname || instagram
244
+ #skype: skype:yourname?call|chat || skype
245
+ #douban: https://www.douban.com/people/yourname/ || douban
246
+
247
+ sidebar:
248
+ # Sidebar Position.
249
+ position: left
250
+ # position: right
251
+ # Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
252
+ avatar: avatar.jpg
253
+
254
+ widgets:
255
+ # if true, will show random posts
256
+ random_posts: true
257
+ # if true, will show recent comments
258
+ recent_comments: true
259
+
260
+ footer:
261
+ # Specify the date when the site was set up. If not defined, current year will be used.
262
+ since: 2022
263
+ icon:
264
+ name: sakura rotate
265
+ # Change the color of icon, using Hex Code.
266
+ color: "#ffc0cb"
267
+ # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
268
+ count: true
269
+ powered: true
270
+ icp: # ICP备案
271
+ enable: false
272
+ # 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
273
+ icon: "" #网安备案图片
274
+ icpnumber: "xxx" # ICP备案号
275
+ beian: "xxx" # 网安备案号
276
+ recordcode: "xxx" # 网安备案链接中的recordcode参数
277
+
278
+ post:
279
+ count: true
280
+
281
+ # 文章是否失效
282
+ outime:
283
+ enable: false
284
+ days: 90 # 超过 90 天文章失效
285
+
286
+ reward:
287
+ # If true, reward will be displayed in every article by default.
288
+ enable: true
289
+ account:
290
+ wechatpay: /wechatpay.png
291
+ alipay: /alipay.png
292
+ # paypal: /paypal.png
293
+
294
+ # TagCloud settings for tags page.
295
+ tagcloud:
296
+ # All values below are same as default, change them by yourself.
297
+ min: 16 # Minimun font size in px
298
+ max: 22 # Maxium font size in px
299
+ start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
300
+ end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
301
+ amount: 200 # Amount of tags, change it if you have more than 200 tags
302
+
303
+ # ---------------------------------------------------------------
304
+ # Third Party Plugins & Services Settings
305
+ # ---------------------------------------------------------------
306
+
307
+ # Creative Commons 4.0 International License.
308
+ # See: https://creativecommons.org/share-your-work/licensing-types-examples
309
+ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
310
+ # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
311
+ # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
312
+ creative_commons:
313
+ license: by-nc-sa
314
+ language: deed.zh
315
+
316
+ # bgm
317
+ # 不使用请打开noplayer功能
318
+ audio:
319
+ # - title: 列表1
320
+ # list:
321
+ # - https://music.163.com/#/playlist?id=2943811283
322
+ # - title: 列表2
323
+ # list:
324
+ # - https://music.163.com/#/playlist?id=2031842656
325
+
326
+ # random image api
327
+ image_server: # "https://acg.xydwz.cn/api/api.php"
328
+
329
+ # Algolia Search
330
+ # For more information: https://www.algolia.com
331
+ search:
332
+ hits:
333
+ per_page: 10
334
+
335
+ #! ---------------------------------------------------------------
336
+ #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
337
+ #! UNLESS YOU KNOW WHAT YOU ARE DOING
338
+ #! ---------------------------------------------------------------
339
+ vendors:
340
+ cdns:
341
+ cdnjs: https://s4.zstatic.net/ajax/libs
342
+ js:
343
+ async_js:
344
+ copy_tex:
345
+ source: cdnjs
346
+ url: KaTeX/0.16.9/contrib/copy-tex.min.js
347
+ sri: "sha384-ww/583aHhxWkz5DEVn6OKtNiIaLi2iBRNZXfJRiY1Ai7tnJ9UXpEsyvOITVpTl4A"
348
+ css:
349
+ katex:
350
+ source: cdnjs
351
+ url: KaTeX/0.16.9/katex.min.css
352
+ sri: "sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"