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.
- package/.vscode/settings.json +5 -5
- package/CODE_OF_CONDUCT.md +128 -128
- package/LICENSE +660 -660
- package/LICENSE-shoka +21 -21
- package/README.md +74 -74
- package/UsageRestrictions.md +25 -25
- package/_config.yml +359 -352
- package/languages/README.md +19 -19
- package/languages/default.yml +1 -1
- package/languages/en.yml +155 -155
- package/languages/ja.yml +155 -155
- package/languages/zh-CN.yml +155 -155
- package/languages/zh-HK.yml +155 -155
- package/languages/zh-TW.yml +155 -155
- package/layout/_alternate/atom.ejs +30 -30
- package/layout/_alternate/json.ejs +16 -16
- package/layout/_alternate/rss.ejs +34 -34
- package/layout/_mixin/breadcrumb.pug +33 -33
- package/layout/_mixin/card.pug +37 -37
- package/layout/_mixin/comment.pug +6 -6
- package/layout/_mixin/postmeta.pug +29 -29
- package/layout/_mixin/segment.pug +35 -35
- package/layout/_mixin/sidebar.pug +40 -40
- package/layout/_mixin/widgets.pug +28 -28
- package/layout/_partials/footer.pug +43 -43
- package/layout/_partials/head/head.pug +50 -50
- package/layout/_partials/head/head_com.pug +24 -24
- package/layout/_partials/head/pwa.pug +18 -18
- package/layout/_partials/header.pug +18 -18
- package/layout/_partials/layout.pug +138 -137
- package/layout/_partials/loading.pug +13 -13
- package/layout/_partials/pagination.pug +4 -4
- package/layout/_partials/post/copyright.pug +20 -20
- package/layout/_partials/post/footer.pug +20 -20
- package/layout/_partials/post/nav.pug +17 -17
- package/layout/_partials/post/post.pug +42 -42
- package/layout/_partials/post/reward.pug +18 -18
- package/layout/_partials/sidebar/menu.pug +37 -37
- package/layout/_partials/sidebar/overview.pug +42 -42
- package/layout/_partials/third-party/baidu-analytics.pug +11 -11
- package/layout/_partials/third-party/clarity.pug +8 -8
- package/layout/_partials/third-party/google-analytics.pug +9 -9
- package/layout/archive.pug +121 -121
- package/layout/category.pug +62 -62
- package/layout/index.pug +36 -36
- package/layout/page.pug +60 -60
- package/layout/post.pug +42 -42
- package/layout/tag.pug +46 -46
- package/package.json +6 -5
- package/scripts/generaters/script.js +2 -1
- package/source/assets/algolia_logo.svg +9 -9
- package/source/assets/logo.svg +16 -16
- package/source/css/_colors.styl +207 -207
- package/source/css/_common/components/components.styl +5 -5
- package/source/css/_common/components/pages/collapse.styl +119 -119
- package/source/css/_common/components/pages/home.styl +391 -391
- package/source/css/_common/components/pages/pages.styl +56 -56
- package/source/css/_common/components/pages/tag-cloud.styl +12 -12
- package/source/css/_common/components/post/breadcrumb.styl +39 -39
- package/source/css/_common/components/post/copyright.styl +41 -41
- package/source/css/_common/components/post/expand.styl +263 -263
- package/source/css/_common/components/post/footer.styl +11 -11
- package/source/css/_common/components/post/header.styl +79 -79
- package/source/css/_common/components/post/nav.styl +64 -64
- package/source/css/_common/components/post/post.styl +29 -29
- package/source/css/_common/components/post/reward.styl +50 -50
- package/source/css/_common/components/post/rtl.styl +12 -12
- package/source/css/_common/components/post/tags.styl +39 -39
- package/source/css/_common/components/tags/collapse.styl +72 -72
- package/source/css/_common/components/tags/container.styl +49 -49
- package/source/css/_common/components/tags/label.styl +12 -12
- package/source/css/_common/components/tags/links.styl +77 -77
- package/source/css/_common/components/tags/list.styl +131 -131
- package/source/css/_common/components/tags/note.styl +70 -70
- package/source/css/_common/components/tags/player.styl +361 -361
- package/source/css/_common/components/tags/quiz.styl +200 -200
- package/source/css/_common/components/tags/tabs.styl +89 -89
- package/source/css/_common/components/tags/tags.styl +9 -9
- package/source/css/_common/components/third-party/loading.styl +222 -222
- package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
- package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
- package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
- package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
- package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
- package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
- package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
- package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
- package/source/css/_common/components/third-party/pace.styl +18 -18
- package/source/css/_common/components/third-party/search.styl +167 -167
- package/source/css/_common/components/third-party/theme.styl +151 -151
- package/source/css/_common/components/third-party/third-party.styl +22 -22
- package/source/css/_common/components/third-party/widgets.styl +57 -57
- package/source/css/_common/outline/footer/footer.styl +67 -67
- package/source/css/_common/outline/header/brand.styl +77 -77
- package/source/css/_common/outline/header/header.styl +20 -20
- package/source/css/_common/outline/header/image.styl +85 -85
- package/source/css/_common/outline/header/menu.styl +117 -117
- package/source/css/_common/outline/header/nav.styl +81 -81
- package/source/css/_common/outline/header/right.styl +15 -15
- package/source/css/_common/outline/header/tool.styl +207 -207
- package/source/css/_common/outline/header/waves.styl +57 -57
- package/source/css/_common/outline/mobile.styl +46 -46
- package/source/css/_common/outline/outline.styl +78 -78
- package/source/css/_common/outline/sidebar/author.styl +59 -59
- package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
- package/source/css/_common/outline/sidebar/menu.styl +63 -63
- package/source/css/_common/outline/sidebar/quick.styl +43 -43
- package/source/css/_common/outline/sidebar/related.styl +56 -56
- package/source/css/_common/outline/sidebar/sidebar.styl +82 -82
- package/source/css/_common/outline/sidebar/social.styl +69 -69
- package/source/css/_common/outline/sidebar/state.styl +37 -37
- package/source/css/_common/outline/sidebar/tab.styl +71 -71
- package/source/css/_common/outline/sidebar/toc.styl +47 -47
- package/source/css/_common/scaffolding/animate.styl +322 -322
- package/source/css/_common/scaffolding/base.styl +192 -192
- package/source/css/_common/scaffolding/buttons.styl +48 -48
- package/source/css/_common/scaffolding/divider.styl +36 -36
- package/source/css/_common/scaffolding/iconfont.styl +443 -443
- package/source/css/_common/scaffolding/normalize.styl +273 -273
- package/source/css/_common/scaffolding/pagination.styl +81 -81
- package/source/css/_common/scaffolding/ribbon.styl +38 -38
- package/source/css/_common/scaffolding/scaffolding.styl +14 -14
- package/source/css/_common/scaffolding/scrollbar.styl +37 -37
- package/source/css/_common/scaffolding/tables.styl +50 -50
- package/source/css/_common/scaffolding/tip.styl +19 -19
- package/source/css/_common/scaffolding/toggles.styl +59 -59
- package/source/css/_iconfont.styl +455 -455
- package/source/css/_mixins.styl +148 -148
- package/source/css/_variables.styl +89 -89
- package/source/css/app.styl +25 -25
- package/source/css/mermaid.styl +5 -5
- package/source/css/page.styl +2 -2
- package/source/css/post.styl +4 -4
- package/source/css/scaffolding.styl +4 -4
- package/source/js/_app/components/cloudflare.ts +18 -18
- package/source/js/_app/components/comments.ts +88 -88
- package/source/js/_app/components/sidebar.ts +243 -243
- package/source/js/_app/components/tcomments.ts +53 -53
- package/source/js/_app/globals/globalVars.ts +84 -84
- package/source/js/_app/globals/handles.ts +124 -124
- package/source/js/_app/globals/themeColor.ts +62 -62
- package/source/js/_app/globals/thirdparty.ts +63 -63
- package/source/js/_app/globals/tools.ts +73 -73
- package/source/js/_app/library/anime.ts +121 -121
- package/source/js/_app/library/declare.d.ts +129 -128
- package/source/js/_app/library/proto.ts +70 -70
- package/source/js/_app/library/vue.ts +49 -49
- package/source/js/_app/page/common.ts +41 -41
- package/source/js/_app/page/imageviewer.ts +15 -15
- package/source/js/_app/page/post.ts +251 -251
- package/source/js/_app/page/search.ts +109 -109
- package/source/js/_app/page/tab.ts +59 -59
- package/source/js/_app/pjax/domInit.ts +102 -102
- package/source/js/_app/pjax/refresh.ts +117 -117
- package/source/js/_app/pjax/siteInit.ts +93 -90
- package/source/js/_app/player.ts +13 -13
- package/toolbox/compiler.mjs +49 -49
- package/toolbox/dev-version.mjs +14 -14
- package/toolbox/hoistdep.mjs +5 -5
- 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
|
-
#
|
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
|
-
|
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"
|