hexo-theme-shokax 0.5.2-hotfix.2 → 0.5.3

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 (160) hide show
  1. package/.vscode/settings.json +5 -5
  2. package/CODE_OF_CONDUCT.md +128 -128
  3. package/LICENSE +660 -660
  4. package/LICENSE-shoka +21 -21
  5. package/README.md +74 -74
  6. package/UsageRestrictions.md +25 -25
  7. package/_config.yml +359 -352
  8. package/languages/README.md +19 -19
  9. package/languages/default.yml +1 -1
  10. package/languages/en.yml +155 -155
  11. package/languages/ja.yml +155 -155
  12. package/languages/zh-CN.yml +155 -155
  13. package/languages/zh-HK.yml +155 -155
  14. package/languages/zh-TW.yml +155 -155
  15. package/layout/_alternate/atom.ejs +30 -30
  16. package/layout/_alternate/json.ejs +16 -16
  17. package/layout/_alternate/rss.ejs +34 -34
  18. package/layout/_mixin/breadcrumb.pug +33 -33
  19. package/layout/_mixin/card.pug +37 -37
  20. package/layout/_mixin/comment.pug +6 -6
  21. package/layout/_mixin/postmeta.pug +29 -29
  22. package/layout/_mixin/segment.pug +35 -35
  23. package/layout/_mixin/sidebar.pug +40 -40
  24. package/layout/_mixin/widgets.pug +28 -28
  25. package/layout/_partials/footer.pug +43 -43
  26. package/layout/_partials/head/head.pug +50 -50
  27. package/layout/_partials/head/head_com.pug +24 -24
  28. package/layout/_partials/head/pwa.pug +18 -18
  29. package/layout/_partials/header.pug +18 -18
  30. package/layout/_partials/layout.pug +138 -137
  31. package/layout/_partials/loading.pug +13 -13
  32. package/layout/_partials/pagination.pug +4 -4
  33. package/layout/_partials/post/copyright.pug +20 -20
  34. package/layout/_partials/post/footer.pug +20 -20
  35. package/layout/_partials/post/nav.pug +17 -17
  36. package/layout/_partials/post/post.pug +42 -42
  37. package/layout/_partials/post/reward.pug +18 -18
  38. package/layout/_partials/sidebar/menu.pug +37 -37
  39. package/layout/_partials/sidebar/overview.pug +42 -42
  40. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  41. package/layout/_partials/third-party/clarity.pug +8 -8
  42. package/layout/_partials/third-party/google-analytics.pug +9 -9
  43. package/layout/archive.pug +121 -121
  44. package/layout/category.pug +62 -62
  45. package/layout/index.pug +36 -36
  46. package/layout/page.pug +60 -60
  47. package/layout/post.pug +42 -42
  48. package/layout/tag.pug +46 -46
  49. package/package.json +6 -5
  50. package/scripts/generaters/script.js +2 -1
  51. package/source/assets/algolia_logo.svg +9 -9
  52. package/source/assets/logo.svg +16 -16
  53. package/source/css/_colors.styl +207 -207
  54. package/source/css/_common/components/components.styl +5 -5
  55. package/source/css/_common/components/pages/collapse.styl +119 -119
  56. package/source/css/_common/components/pages/home.styl +391 -391
  57. package/source/css/_common/components/pages/pages.styl +56 -56
  58. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  59. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  60. package/source/css/_common/components/post/copyright.styl +41 -41
  61. package/source/css/_common/components/post/expand.styl +263 -263
  62. package/source/css/_common/components/post/footer.styl +11 -11
  63. package/source/css/_common/components/post/header.styl +79 -79
  64. package/source/css/_common/components/post/nav.styl +64 -64
  65. package/source/css/_common/components/post/post.styl +29 -29
  66. package/source/css/_common/components/post/reward.styl +50 -50
  67. package/source/css/_common/components/post/rtl.styl +12 -12
  68. package/source/css/_common/components/post/tags.styl +39 -39
  69. package/source/css/_common/components/tags/collapse.styl +72 -72
  70. package/source/css/_common/components/tags/container.styl +49 -49
  71. package/source/css/_common/components/tags/label.styl +12 -12
  72. package/source/css/_common/components/tags/links.styl +77 -77
  73. package/source/css/_common/components/tags/list.styl +131 -131
  74. package/source/css/_common/components/tags/note.styl +70 -70
  75. package/source/css/_common/components/tags/player.styl +361 -361
  76. package/source/css/_common/components/tags/quiz.styl +200 -200
  77. package/source/css/_common/components/tags/tabs.styl +89 -89
  78. package/source/css/_common/components/tags/tags.styl +9 -9
  79. package/source/css/_common/components/third-party/loading.styl +222 -222
  80. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  81. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  82. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  83. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  84. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  85. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  86. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  87. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  88. package/source/css/_common/components/third-party/pace.styl +18 -18
  89. package/source/css/_common/components/third-party/search.styl +167 -167
  90. package/source/css/_common/components/third-party/theme.styl +151 -151
  91. package/source/css/_common/components/third-party/third-party.styl +22 -22
  92. package/source/css/_common/components/third-party/widgets.styl +57 -57
  93. package/source/css/_common/outline/footer/footer.styl +67 -67
  94. package/source/css/_common/outline/header/brand.styl +77 -77
  95. package/source/css/_common/outline/header/header.styl +20 -20
  96. package/source/css/_common/outline/header/image.styl +85 -85
  97. package/source/css/_common/outline/header/menu.styl +117 -117
  98. package/source/css/_common/outline/header/nav.styl +81 -81
  99. package/source/css/_common/outline/header/right.styl +15 -15
  100. package/source/css/_common/outline/header/tool.styl +207 -207
  101. package/source/css/_common/outline/header/waves.styl +57 -57
  102. package/source/css/_common/outline/mobile.styl +46 -46
  103. package/source/css/_common/outline/outline.styl +78 -78
  104. package/source/css/_common/outline/sidebar/author.styl +59 -59
  105. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  106. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  107. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  108. package/source/css/_common/outline/sidebar/related.styl +56 -56
  109. package/source/css/_common/outline/sidebar/sidebar.styl +82 -82
  110. package/source/css/_common/outline/sidebar/social.styl +69 -69
  111. package/source/css/_common/outline/sidebar/state.styl +37 -37
  112. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  113. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  114. package/source/css/_common/scaffolding/animate.styl +322 -322
  115. package/source/css/_common/scaffolding/base.styl +192 -192
  116. package/source/css/_common/scaffolding/buttons.styl +48 -48
  117. package/source/css/_common/scaffolding/divider.styl +36 -36
  118. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  119. package/source/css/_common/scaffolding/normalize.styl +273 -273
  120. package/source/css/_common/scaffolding/pagination.styl +81 -81
  121. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  122. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  123. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  124. package/source/css/_common/scaffolding/tables.styl +50 -50
  125. package/source/css/_common/scaffolding/tip.styl +19 -19
  126. package/source/css/_common/scaffolding/toggles.styl +59 -59
  127. package/source/css/_iconfont.styl +455 -455
  128. package/source/css/_mixins.styl +148 -148
  129. package/source/css/_variables.styl +89 -89
  130. package/source/css/app.styl +25 -25
  131. package/source/css/mermaid.styl +5 -5
  132. package/source/css/page.styl +2 -2
  133. package/source/css/post.styl +4 -4
  134. package/source/css/scaffolding.styl +4 -4
  135. package/source/js/_app/components/cloudflare.ts +18 -18
  136. package/source/js/_app/components/comments.ts +88 -88
  137. package/source/js/_app/components/sidebar.ts +243 -243
  138. package/source/js/_app/components/tcomments.ts +53 -53
  139. package/source/js/_app/globals/globalVars.ts +84 -84
  140. package/source/js/_app/globals/handles.ts +124 -124
  141. package/source/js/_app/globals/themeColor.ts +62 -62
  142. package/source/js/_app/globals/thirdparty.ts +63 -63
  143. package/source/js/_app/globals/tools.ts +73 -73
  144. package/source/js/_app/library/anime.ts +121 -121
  145. package/source/js/_app/library/declare.d.ts +129 -128
  146. package/source/js/_app/library/proto.ts +70 -70
  147. package/source/js/_app/library/vue.ts +49 -49
  148. package/source/js/_app/page/common.ts +41 -41
  149. package/source/js/_app/page/imageviewer.ts +15 -15
  150. package/source/js/_app/page/post.ts +251 -251
  151. package/source/js/_app/page/search.ts +109 -109
  152. package/source/js/_app/page/tab.ts +59 -59
  153. package/source/js/_app/pjax/domInit.ts +102 -102
  154. package/source/js/_app/pjax/refresh.ts +117 -117
  155. package/source/js/_app/pjax/siteInit.ts +93 -90
  156. package/source/js/_app/player.ts +13 -13
  157. package/toolbox/compiler.mjs +49 -49
  158. package/toolbox/dev-version.mjs +14 -14
  159. package/toolbox/hoistdep.mjs +5 -5
  160. package/toolbox/lib.mjs +63 -63
package/_config.yml CHANGED
@@ -1,352 +1,359 @@
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"
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
+ # 由于 Hexo 的 ESM 模块支持存在严重缺陷,ShokaX 无法引入自动索引流程,Pagefind 构建需要通过 CLI 手动执行
226
+ # 在每次 generate 完成后需要执行`pnpm dlx pagefind --site public`,再 deploy,否则 Pagefind 无法正常工作
227
+ # 参见:<todo: 链接到 ShokaX 文档>
228
+ pagefind: # pagefind 本地搜索 https://pagefind.app/
229
+ enable: false # 是否启用
230
+
231
+
232
+ # Social Links
233
+ # Usage: `Key: permalink || icon || color`
234
+ # Key is the link label showing to end users.
235
+ # Value before `||` delimiter is the target permalink,
236
+ # secend value is the name of Font icon.
237
+ social:
238
+ github: https://github.com/yourname || github || "#191717"
239
+ #gitee: https://gitee.com/yourname || gitee || "#e60026"
240
+ #google: https://plus.google.com/yourname || google
241
+ #twitter: https://twitter.com/yourname || twitter || "#00aff0"
242
+ #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
243
+ #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
244
+ #weibo: https://weibo.com/yourname || weibo || "#ea716e"
245
+ #about: https://about.me/yourname || address-card || "#3b5998"
246
+ #email: mailto:foo@xxx.com || envelope || "#55acd5"
247
+ #facebook: https://www.facebook.com/yourname || facebook
248
+ #stackoverflow: https://stackoverflow.com/ || stack-overflow
249
+ #youtube: https://youtube.com/yourname || youtube
250
+ #instagram: https://instagram.com/yourname || instagram
251
+ #skype: skype:yourname?call|chat || skype
252
+ #douban: https://www.douban.com/people/yourname/ || douban
253
+
254
+ sidebar:
255
+ # Sidebar Position.
256
+ position: left
257
+ # position: right
258
+ # Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
259
+ avatar: avatar.jpg
260
+
261
+ widgets:
262
+ # if true, will show random posts
263
+ random_posts: true
264
+ # if true, will show recent comments
265
+ recent_comments: true
266
+
267
+ footer:
268
+ # Specify the date when the site was set up. If not defined, current year will be used.
269
+ since: 2022
270
+ icon:
271
+ name: sakura rotate
272
+ # Change the color of icon, using Hex Code.
273
+ color: "#ffc0cb"
274
+ # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
275
+ count: true
276
+ powered: true
277
+ icp: # ICP备案
278
+ enable: false
279
+ # 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
280
+ icon: "" #网安备案图片
281
+ icpnumber: "xxx" # ICP备案号
282
+ beian: "xxx" # 网安备案号
283
+ recordcode: "xxx" # 网安备案链接中的recordcode参数
284
+
285
+ post:
286
+ count: true
287
+
288
+ # 文章是否失效
289
+ outime:
290
+ enable: false
291
+ days: 90 # 超过 90 天文章失效
292
+
293
+ reward:
294
+ # If true, reward will be displayed in every article by default.
295
+ enable: true
296
+ account:
297
+ wechatpay: /wechatpay.png
298
+ alipay: /alipay.png
299
+ # paypal: /paypal.png
300
+
301
+ # TagCloud settings for tags page.
302
+ tagcloud:
303
+ # All values below are same as default, change them by yourself.
304
+ min: 16 # Minimun font size in px
305
+ max: 22 # Maxium font size in px
306
+ start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
307
+ end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
308
+ amount: 200 # Amount of tags, change it if you have more than 200 tags
309
+
310
+ # ---------------------------------------------------------------
311
+ # Third Party Plugins & Services Settings
312
+ # ---------------------------------------------------------------
313
+
314
+ # Creative Commons 4.0 International License.
315
+ # See: https://creativecommons.org/share-your-work/licensing-types-examples
316
+ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
317
+ # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
318
+ # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
319
+ creative_commons:
320
+ license: by-nc-sa
321
+ language: deed.zh
322
+
323
+ # bgm
324
+ # 不使用请打开noplayer功能
325
+ audio:
326
+ # - title: 列表1
327
+ # list:
328
+ # - https://music.163.com/#/playlist?id=2943811283
329
+ # - title: 列表2
330
+ # list:
331
+ # - https://music.163.com/#/playlist?id=2031842656
332
+
333
+ # random image api
334
+ image_server: # "https://acg.xydwz.cn/api/api.php"
335
+
336
+ # Algolia Search
337
+ # For more information: https://www.algolia.com
338
+ search:
339
+ hits:
340
+ per_page: 10
341
+
342
+ #! ---------------------------------------------------------------
343
+ #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
344
+ #! UNLESS YOU KNOW WHAT YOU ARE DOING
345
+ #! ---------------------------------------------------------------
346
+ vendors:
347
+ cdns:
348
+ cdnjs: https://s4.zstatic.net/ajax/libs
349
+ js:
350
+ async_js:
351
+ copy_tex:
352
+ source: cdnjs
353
+ url: KaTeX/0.16.9/contrib/copy-tex.min.js
354
+ sri: "sha384-ww/583aHhxWkz5DEVn6OKtNiIaLi2iBRNZXfJRiY1Ai7tnJ9UXpEsyvOITVpTl4A"
355
+ css:
356
+ katex:
357
+ source: cdnjs
358
+ url: KaTeX/0.16.9/katex.min.css
359
+ sri: "sha384-n8MVd4RsNIU0tAv4ct0nTaAbDJwPJzDEaqSD1odI+WdtXRGWt2kTvGFasHpSy3SV"