hexo-theme-shokax 0.4.5 → 0.4.6-beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/CODE_OF_CONDUCT.md +128 -128
  2. package/CONTRIBUTING.md +58 -58
  3. package/LICENSE +660 -660
  4. package/LICENSE-shoka +21 -21
  5. package/README.md +99 -98
  6. package/README_en.MD +91 -90
  7. package/UsageRestrictions.md +25 -25
  8. package/_config.yml +381 -388
  9. package/_images.yml +9 -9
  10. package/eslint.config.mjs +55 -55
  11. package/index.html +231 -0
  12. package/languages/README.md +19 -19
  13. package/languages/default.yml +1 -1
  14. package/languages/en.yml +153 -153
  15. package/languages/ja.yml +153 -153
  16. package/languages/zh-CN.yml +153 -153
  17. package/languages/zh-HK.yml +153 -153
  18. package/languages/zh-TW.yml +153 -153
  19. package/layout/_alternate/atom.ejs +30 -30
  20. package/layout/_alternate/json.ejs +16 -16
  21. package/layout/_alternate/rss.ejs +34 -34
  22. package/layout/_mixin/breadcrumb.pug +33 -33
  23. package/layout/_mixin/card.pug +38 -38
  24. package/layout/_mixin/comment.pug +6 -6
  25. package/layout/_mixin/postmeta.pug +29 -29
  26. package/layout/_mixin/segment.pug +35 -35
  27. package/layout/_mixin/sidebar.pug +40 -40
  28. package/layout/_mixin/widgets.pug +28 -28
  29. package/layout/_partials/footer.pug +43 -43
  30. package/layout/_partials/head/head.pug +55 -56
  31. package/layout/_partials/head/head_com.pug +24 -24
  32. package/layout/_partials/head/pwa.pug +18 -18
  33. package/layout/_partials/header.pug +18 -18
  34. package/layout/_partials/layout.pug +140 -140
  35. package/layout/_partials/loading.pug +13 -13
  36. package/layout/_partials/pagination.pug +4 -4
  37. package/layout/_partials/post/copyright.pug +20 -20
  38. package/layout/_partials/post/footer.pug +17 -17
  39. package/layout/_partials/post/nav.pug +13 -13
  40. package/layout/_partials/post/post.pug +41 -41
  41. package/layout/_partials/post/reward.pug +18 -18
  42. package/layout/_partials/sidebar/menu.pug +37 -37
  43. package/layout/_partials/sidebar/overview.pug +42 -42
  44. package/layout/_partials/third-party/baidu-analytics.pug +11 -11
  45. package/layout/_partials/third-party/clarity.pug +8 -8
  46. package/layout/_partials/third-party/google-analytics.pug +9 -9
  47. package/layout/archive.pug +118 -118
  48. package/layout/category.pug +59 -59
  49. package/layout/index.pug +33 -33
  50. package/layout/page.pug +55 -55
  51. package/layout/post.pug +36 -36
  52. package/layout/tag.pug +43 -43
  53. package/meta.json +6431 -0
  54. package/package.json +72 -70
  55. package/scripts/helpers/engine.js +10 -0
  56. package/scripts/plugin/check.js +2 -2
  57. package/scripts/tags/links.js +4 -4
  58. package/source/assets/algolia_logo.svg +9 -9
  59. package/source/assets/logo.svg +16 -16
  60. package/source/css/_colors.styl +207 -207
  61. package/source/css/_common/components/components.styl +6 -6
  62. package/source/css/_common/components/highlight/highlight.styl +357 -357
  63. package/source/css/_common/components/highlight/operation.styl +21 -21
  64. package/source/css/_common/components/pages/collapse.styl +119 -119
  65. package/source/css/_common/components/pages/home.styl +391 -391
  66. package/source/css/_common/components/pages/pages.styl +56 -56
  67. package/source/css/_common/components/pages/tag-cloud.styl +12 -12
  68. package/source/css/_common/components/post/breadcrumb.styl +39 -39
  69. package/source/css/_common/components/post/copyright.styl +41 -41
  70. package/source/css/_common/components/post/expand.styl +263 -263
  71. package/source/css/_common/components/post/footer.styl +11 -11
  72. package/source/css/_common/components/post/header.styl +79 -79
  73. package/source/css/_common/components/post/nav.styl +64 -64
  74. package/source/css/_common/components/post/post.styl +29 -29
  75. package/source/css/_common/components/post/reward.styl +50 -50
  76. package/source/css/_common/components/post/rtl.styl +12 -12
  77. package/source/css/_common/components/post/tags.styl +39 -39
  78. package/source/css/_common/components/tags/collapse.styl +72 -72
  79. package/source/css/_common/components/tags/container.styl +49 -49
  80. package/source/css/_common/components/tags/label.styl +12 -12
  81. package/source/css/_common/components/tags/links.styl +77 -77
  82. package/source/css/_common/components/tags/list.styl +131 -131
  83. package/source/css/_common/components/tags/note.styl +70 -70
  84. package/source/css/_common/components/tags/player.styl +361 -361
  85. package/source/css/_common/components/tags/quiz.styl +200 -200
  86. package/source/css/_common/components/tags/tabs.styl +89 -89
  87. package/source/css/_common/components/tags/tags.styl +9 -9
  88. package/source/css/_common/components/third-party/loading.styl +222 -222
  89. package/source/css/_common/components/third-party/mermaid/class.styl +90 -90
  90. package/source/css/_common/components/third-party/mermaid/flowchart.styl +72 -72
  91. package/source/css/_common/components/third-party/mermaid/gantt.styl +251 -251
  92. package/source/css/_common/components/third-party/mermaid/git.styl +7 -7
  93. package/source/css/_common/components/third-party/mermaid/mermaid.styl +37 -37
  94. package/source/css/_common/components/third-party/mermaid/pie.styl +9 -9
  95. package/source/css/_common/components/third-party/mermaid/sequence.styl +95 -95
  96. package/source/css/_common/components/third-party/mermaid/state.styl +130 -130
  97. package/source/css/_common/components/third-party/pace.styl +18 -18
  98. package/source/css/_common/components/third-party/search.styl +167 -167
  99. package/source/css/_common/components/third-party/theme.styl +151 -151
  100. package/source/css/_common/components/third-party/third-party.styl +22 -22
  101. package/source/css/_common/components/third-party/widgets.styl +57 -57
  102. package/source/css/_common/outline/footer/footer.styl +67 -67
  103. package/source/css/_common/outline/header/brand.styl +77 -77
  104. package/source/css/_common/outline/header/header.styl +20 -20
  105. package/source/css/_common/outline/header/image.styl +85 -85
  106. package/source/css/_common/outline/header/menu.styl +117 -117
  107. package/source/css/_common/outline/header/nav.styl +81 -81
  108. package/source/css/_common/outline/header/right.styl +15 -15
  109. package/source/css/_common/outline/header/tool.styl +207 -207
  110. package/source/css/_common/outline/header/waves.styl +57 -57
  111. package/source/css/_common/outline/mobile.styl +46 -46
  112. package/source/css/_common/outline/outline.styl +78 -78
  113. package/source/css/_common/outline/sidebar/author.styl +59 -59
  114. package/source/css/_common/outline/sidebar/dimmer.styl +23 -23
  115. package/source/css/_common/outline/sidebar/menu.styl +63 -63
  116. package/source/css/_common/outline/sidebar/quick.styl +43 -43
  117. package/source/css/_common/outline/sidebar/related.styl +56 -56
  118. package/source/css/_common/outline/sidebar/sidebar.styl +80 -80
  119. package/source/css/_common/outline/sidebar/social.styl +69 -69
  120. package/source/css/_common/outline/sidebar/state.styl +37 -37
  121. package/source/css/_common/outline/sidebar/tab.styl +71 -71
  122. package/source/css/_common/outline/sidebar/toc.styl +47 -47
  123. package/source/css/_common/scaffolding/animate.styl +322 -322
  124. package/source/css/_common/scaffolding/base.styl +190 -190
  125. package/source/css/_common/scaffolding/buttons.styl +48 -48
  126. package/source/css/_common/scaffolding/divider.styl +36 -36
  127. package/source/css/_common/scaffolding/iconfont.styl +443 -443
  128. package/source/css/_common/scaffolding/normalize.styl +273 -273
  129. package/source/css/_common/scaffolding/pagination.styl +81 -81
  130. package/source/css/_common/scaffolding/ribbon.styl +38 -38
  131. package/source/css/_common/scaffolding/scaffolding.styl +14 -14
  132. package/source/css/_common/scaffolding/scrollbar.styl +37 -37
  133. package/source/css/_common/scaffolding/tables.styl +50 -50
  134. package/source/css/_common/scaffolding/tip.styl +19 -19
  135. package/source/css/_common/scaffolding/toggles.styl +59 -59
  136. package/source/css/_iconfont.styl +455 -455
  137. package/source/css/_mixins.styl +148 -148
  138. package/source/css/_variables.styl +89 -89
  139. package/source/css/app.styl +41 -41
  140. package/source/css/mermaid.styl +5 -5
  141. package/source/css/optimize.styl +5 -5
  142. package/source/js/_app/components/comments.js +59 -0
  143. package/source/js/_app/components/comments.ts +88 -89
  144. package/source/js/_app/components/sidebar.js +244 -0
  145. package/source/js/_app/components/sidebar.ts +239 -239
  146. package/source/js/_app/components/tcomments.js +47 -0
  147. package/source/js/_app/components/tcomments.ts +54 -54
  148. package/source/js/_app/globals/globalVars.ts +99 -99
  149. package/source/js/_app/globals/handles.js +105 -0
  150. package/source/js/_app/globals/handles.ts +124 -124
  151. package/source/js/_app/globals/themeColor.ts +63 -63
  152. package/source/js/_app/globals/thirdparty.ts +63 -63
  153. package/source/js/_app/globals/tools.ts +75 -75
  154. package/source/js/_app/library/anime.ts +110 -110
  155. package/source/js/_app/library/declare.d.ts +128 -130
  156. package/source/js/_app/library/dom.ts +28 -28
  157. package/source/js/_app/library/loadFile.js +43 -0
  158. package/source/js/_app/library/loadFile.ts +47 -50
  159. package/source/js/_app/library/proto.ts +137 -137
  160. package/source/js/_app/library/scriptPjax.ts +72 -72
  161. package/source/js/_app/library/storage.ts +12 -12
  162. package/source/js/_app/library/vue.js +52 -0
  163. package/source/js/_app/library/vue.ts +49 -49
  164. package/source/js/_app/page/common.js +45 -0
  165. package/source/js/_app/page/common.ts +43 -43
  166. package/source/js/_app/page/fancybox.js +70 -0
  167. package/source/js/_app/page/fancybox.ts +72 -72
  168. package/source/js/_app/page/post.js +253 -0
  169. package/source/js/_app/page/post.ts +266 -266
  170. package/source/js/_app/page/search.js +111 -0
  171. package/source/js/_app/page/search.ts +115 -115
  172. package/source/js/_app/page/tab.ts +60 -60
  173. package/source/js/_app/pjax/domInit.js +80 -0
  174. package/source/js/_app/pjax/domInit.ts +97 -97
  175. package/source/js/_app/pjax/refresh.js +137 -0
  176. package/source/js/_app/pjax/refresh.ts +140 -138
  177. package/source/js/_app/pjax/siteInit.js +115 -0
  178. package/source/js/_app/pjax/siteInit.ts +106 -104
  179. package/source/js/_app/player.js +777 -0
  180. package/source/js/_app/player.ts +798 -798
  181. package/toolbox/compiler.mjs +73 -0
  182. package/toolbox/hoistdep.mjs +6 -0
  183. package/toolbox/lib.mjs +43 -0
package/_config.yml CHANGED
@@ -1,388 +1,381 @@
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
- debug: false # 使用debug模式启动
25
- disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
26
- usingRelative: false # _image.yml 使用相对路径
27
- optimizeLongPosts: false # 优化长文章,这能让长文章的FPS提升70%-150%并解决假死问题,但存在一些副作用
28
- # 具体见https://docs.kaitaku.xyz/guide/theme.html#%E9%95%BF%E6%96%87%E7%AB%A0%E4%BC%98%E5%8C%96
29
- mobileWidth: 820px # 移动版和桌面版导航栏最短切换长度
30
-
31
- homeConfig:
32
- gradient: false # 使用CSS渐变作为文章封面
33
- # fixedCover 性能比默认的更好,且开启时将启用LCP优化和预加载 TODO
34
- fixedCover: "" # 主页面cover(为空则使用bing随机图片)
35
-
36
- # ShokaX 模块化分包引入设置
37
- # 请关闭所有不使用的模块以优化主题 js 体积和性能
38
- modules:
39
- player: true # 启用音乐播放器
40
- fireworks: true # 启用鼠标点击烟花特效
41
- unlazyHash: false # 启用unlazy hash预览图支持
42
- visibilityListener: true # 启用可见度监听器
43
- tabs: true # 启用选项卡扩展支持,如需开启 summary 功能请一并开启
44
- quiz: true # 启用文章内问题扩展支持
45
- fancybox: true # 启用 fancybox 支持(不建议禁用)
46
-
47
- styles:
48
- postprocess: true # 启用后处理器
49
- modules:
50
- mermaid: false
51
-
52
- # 优化性能区
53
- performance:
54
- # 使用preconnect预加载的网址(不建议超过三个)
55
- preConnect:
56
- - "https://lf9-cdn-tos.bytecdntp.com"
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
- # 使用polyfill.io自动处理浏览器兼容问题
93
- polyfill:
94
- enable: false
95
- features:
96
- - default
97
- - fetch
98
-
99
- # 显示的动画(烟花)
100
- # 参阅 https://github.com/D-Sketon/mouse-firework
101
- fireworks:
102
- enable: true
103
- options:
104
- excludeElements: ["a"]
105
- particles:
106
- - shape: circle
107
- move: ["emit"]
108
- easing: easeOutExpo
109
- colors:
110
- - "rgba(255,182,185,.9)"
111
- - "rgba(250,227,217,.9)"
112
- - "rgba(187,222,214,.9)"
113
- - "rgba(138,198,209,.9)"
114
- number: 30
115
- duration: [1200, 1800]
116
- shapeOptions:
117
- radius: [16, 32]
118
- - shape: circle
119
- move: ["diffuse"]
120
- easing: easeOutExpo
121
- colors: ["#fff"]
122
- number: 1
123
- duration: [1200, 1800]
124
- shapeOptions:
125
- radius: 20
126
- alpha: 0.5
127
- lineWidth: 6
128
-
129
- font:
130
- enable: true
131
- # 从google字体库加载,如果自定义@font-face请关闭
132
- loadFromGoogle: true
133
- # 字体选项:
134
- # `external`:从google字体库加载字体.
135
- # `family: 字体家族名,无需引号
136
- # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
137
-
138
- # 适用于所有在body标签内的文字.
139
- global:
140
- external: true
141
- family: Mulish
142
- size:
143
-
144
- # 大标题字体.
145
- logo:
146
- external: true
147
- family: Fredericka the Great
148
- size: 3.5
149
-
150
- # 页面标题字体.
151
- title:
152
- external: true
153
- family: Noto Serif JP
154
- size: 2.5
155
-
156
- # 标题字体.
157
- headings:
158
- external: true
159
- family: Noto Serif SC
160
- size:
161
-
162
- # 文章字体.
163
- posts:
164
- external: false
165
- family:
166
-
167
- # 代码块的字体
168
- codes:
169
- external: true
170
- family: Inconsolata
171
-
172
- # //at.alicdn.com/t/c/font_4415496_59g1326wajd.css => 4415496_59g1326wajd
173
- # 自定义iconfont图标参见文档教程
174
- iconfont: "4415496_59g1326wajd"
175
-
176
- menu:
177
- home: / || home
178
- # about:
179
- # default: / || user
180
- # aboutsite: /about/ || user
181
- # admiration: /admiration/ || coffee
182
- # posts:
183
- # default: / || feather
184
- # archives: /archives/ || list-alt
185
- # categories: /categories/ || th
186
- # tags: /tags/ || tags
187
- # friends: /friends/ || heart
188
-
189
- # https://twikoo.js.org
190
- twikoo:
191
- enable: false
192
- link: "https://cdn.staticfile.org/twikoo/1.6.30/twikoo.all.min.js"
193
- mode: vercel # vercel或tencent
194
- envId: "https://example.com" # twikoo环境ID,vercel填地址
195
- region:
196
-
197
- # https://waline.js.org/
198
- waline:
199
- enable: false
200
- serverURL: ""
201
- lang: "zh-CN"
202
- locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
203
- emoji: # 表情包
204
- - https://unpkg.com/@waline/emojis@1.0.1/weibo
205
- - https://unpkg.com/@waline/emojis@1.0.1/alus
206
- - https://unpkg.com/@waline/emojis@1.0.1/bilibili
207
- - https://unpkg.com/@waline/emojis@1.0.1/qq
208
- - https://unpkg.com/@waline/emojis@1.0.1/tieba
209
- - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji
210
- meta: # 可以填写的内容
211
- - nick
212
- - mail
213
- - link
214
- requiredMeta: # 必须填写的内容
215
- - nick
216
- - mail
217
- wordLimit: 0 # 字数限制,0为不限制
218
- pageSize: 10 # 每页评论条数
219
- pageview: false # 是否开启浏览量统计,可独立开启
220
-
221
- summary:
222
- enable: false
223
- introduce: "我是基于ChatGPT-turbo-3.5实现的AI助手,在此网站上负责整理和概括文章" # AI自我介绍
224
- mode: openai # openai/custom
225
- pricing: "trial" # trial为试用模板(3 RPM);pay为即用即付模板(60 RPM)
226
- openai:
227
- remote: "https://api.openai.com"
228
- apikey: "key"
229
-
230
-
231
- # Social Links
232
- # Usage: `Key: permalink || icon || color`
233
- # Key is the link label showing to end users.
234
- # Value before `||` delimiter is the target permalink,
235
- # secend value is the name of Font icon.
236
- social:
237
- github: https://github.com/yourname || github || "#191717"
238
- #gitee: https://gitee.com/yourname || gitee || "#e60026"
239
- #google: https://plus.google.com/yourname || google
240
- #twitter: https://twitter.com/yourname || twitter || "#00aff0"
241
- #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
242
- #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
243
- #weibo: https://weibo.com/yourname || weibo || "#ea716e"
244
- #about: https://about.me/yourname || address-card || "#3b5998"
245
- #email: mailto:foo@xxx.com || envelope || "#55acd5"
246
- #facebook: https://www.facebook.com/yourname || facebook
247
- #stackoverflow: https://stackoverflow.com/ || stack-overflow
248
- #youtube: https://youtube.com/yourname || youtube
249
- #instagram: https://instagram.com/yourname || instagram
250
- #skype: skype:yourname?call|chat || skype
251
- #douban: https://www.douban.com/people/yourname/ || douban
252
-
253
- sidebar:
254
- # Sidebar Position.
255
- position: left
256
- # position: right
257
- # Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
258
- avatar: avatar.jpg
259
-
260
- widgets:
261
- # if true, will show random posts
262
- random_posts: true
263
- # if true, will show recent comments
264
- recent_comments: true
265
-
266
- footer:
267
- # Specify the date when the site was set up. If not defined, current year will be used.
268
- since: 2022
269
- icon:
270
- name: sakura rotate
271
- # Change the color of icon, using Hex Code.
272
- color: "#ffc0cb"
273
- # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
274
- count: true
275
- powered: true
276
- lantern:
277
- enable: true #是否开启
278
- word1: 中 #第一个字
279
- word2: 秋 #第二个字
280
- icp: # ICP备案
281
- enable: false
282
- # 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
283
- icon: "" #网安备案图片
284
- icpnumber: "xxx" # ICP备案号
285
- beian: "xxx" # 网安备案号
286
- recordcode: "xxx" # 网安备案链接中的recordcode参数
287
-
288
- post:
289
- count: true
290
-
291
- # 文章是否失效
292
- outime:
293
- enable: false
294
- days: 90 # 超过 90 天文章失效
295
-
296
- reward:
297
- # If true, reward will be displayed in every article by default.
298
- enable: true
299
- account:
300
- wechatpay: /wechatpay.png
301
- alipay: /alipay.png
302
- # paypal: /paypal.png
303
-
304
- # TagCloud settings for tags page.
305
- tagcloud:
306
- # All values below are same as default, change them by yourself.
307
- min: 16 # Minimun font size in px
308
- max: 22 # Maxium font size in px
309
- start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
310
- end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
311
- amount: 200 # Amount of tags, change it if you have more than 200 tags
312
-
313
- # ---------------------------------------------------------------
314
- # Third Party Plugins & Services Settings
315
- # ---------------------------------------------------------------
316
-
317
- # Creative Commons 4.0 International License.
318
- # See: https://creativecommons.org/share-your-work/licensing-types-examples
319
- # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
320
- # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
321
- # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
322
- creative_commons:
323
- license: by-nc-sa
324
- language: deed.zh
325
-
326
- # bgm
327
- # 不使用请打开noplayer功能
328
- audio:
329
- # - title: 列表1
330
- # list:
331
- # - https://music.163.com/#/playlist?id=2943811283
332
- # - https://music.163.com/#/playlist?id=2297706586
333
- # - title: 列表2
334
- # list:
335
- # - https://music.163.com/#/playlist?id=2031842656
336
-
337
- # random image api
338
- image_server: # "https://acg.xydwz.cn/api/api.php"
339
-
340
- # Algolia Search
341
- # For more information: https://www.algolia.com
342
- search:
343
- hits:
344
- per_page: 10
345
-
346
- # Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
347
- pangu: false
348
-
349
- # Quicklink Support
350
- # For more information: https://github.com/GoogleChromeLabs/quicklink
351
- quicklink:
352
- # Custom a time in milliseconds by which the browser must execute prefetching.
353
- timeout: 3000
354
- # Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
355
- priority: true
356
-
357
- # For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
358
- # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
359
- ignores:
360
-
361
- #! ---------------------------------------------------------------
362
- #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
363
- #! UNLESS YOU KNOW WHAT YOU ARE DOING
364
- #! ---------------------------------------------------------------
365
- vendors:
366
- cdns:
367
- npm_webcache: https://npm.webcache.cn
368
- bytedance: https://lf9-cdn-tos.bytecdntp.com/cdn/expire-6-M
369
- cdnjs_webcache: https://cdnjs.webstatic.cn/ajax/libs
370
- cdnjs: https://cdnjs.cloudflare.com/ajax/libs
371
- unpkg: https://unpkg.com
372
- js:
373
- pace: bytedance|pace/1.2.4/pace.min.js
374
- # pjax: npm_webcache|theme-shokax-pjax@0.0.3/pjax.shokax.min.js
375
- # anime: npm_webcache|theme-shokax-anime@0.0.6/anime.shokax.min.js
376
- # lozad: npm_webcache|lozad@1.16.0/dist/lozad.min.js
377
- # algolia: bytedance|algoliasearch/4.12.1/algoliasearch-lite.umd.min.js
378
- # instantsearch: bytedance|instantsearch.js/4.39.0/instantsearch.production.min.js
379
- # quicklink: npm_webcache|quicklink@2.3.0/dist/quicklink.umd.js
380
- # mouse_firework: npm_webcache|mouse-firework@0.0.4/dist/index.umd.js
381
- async_js:
382
- fancybox: bytedance|??jquery/3.5.1/jquery.min.js,fancybox/3.5.7/jquery.fancybox.min.js,justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
383
- copy_tex: npm_webcache|katex@0.16.7/dist/contrib/copy-tex.min.js
384
- css:
385
- katex: npm_webcache|katex@0.16.7/dist/katex.min.css
386
- comment: css/comment.css
387
- fancybox: npm_webcache|@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css
388
- justifiedGallery: npm_webcache|justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css
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
+ debug: false # 使用debug模式启动
25
+ disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
26
+ usingRelative: false # _image.yml 使用相对路径
27
+ optimizeLongPosts: false # 优化长文章,这能让长文章的FPS提升70%-150%并解决假死问题,但存在一些副作用
28
+ # 具体见https://docs.kaitaku.xyz/guide/theme.html#%E9%95%BF%E6%96%87%E7%AB%A0%E4%BC%98%E5%8C%96
29
+ mobileWidth: 820px # 移动版和桌面版导航栏最短切换长度
30
+
31
+ homeConfig:
32
+ gradient: false # 使用CSS渐变作为文章封面
33
+ # fixedCover 性能比默认的更好,且开启时将启用LCP优化和预加载 TODO
34
+ fixedCover: "" # 主页面cover(为空则使用bing随机图片)
35
+
36
+ # ShokaX 模块化分包引入设置
37
+ # 请关闭所有不使用的模块以优化主题 js 体积和性能
38
+ modules:
39
+ player: true # 启用音乐播放器
40
+ fireworks: true # 启用鼠标点击烟花特效
41
+ unlazyHash: false # 启用unlazy hash预览图支持
42
+ visibilityListener: true # 启用可见度监听器
43
+ tabs: true # 启用选项卡扩展支持,如需开启 summary 功能请一并开启
44
+ quiz: true # 启用文章内问题扩展支持
45
+ fancybox: true # 启用 fancybox 支持(不建议禁用)
46
+
47
+ styles:
48
+ postprocess: true # 启用后处理器
49
+ modules:
50
+ mermaid: false
51
+
52
+ # 优化性能区
53
+ performance:
54
+ # 使用preconnect预加载的网址(不建议超过三个)
55
+ preConnect:
56
+ - "https://lf9-cdn-tos.bytecdntp.com"
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
+ # 使用polyfill.io自动处理浏览器兼容问题
93
+ polyfill:
94
+ enable: false
95
+ features:
96
+ - default
97
+ - fetch
98
+
99
+ # 显示的动画(烟花)
100
+ # 参阅 https://github.com/D-Sketon/mouse-firework
101
+ fireworks:
102
+ enable: true
103
+ options:
104
+ excludeElements: ["a"]
105
+ particles:
106
+ - shape: circle
107
+ move: ["emit"]
108
+ easing: easeOutExpo
109
+ colors:
110
+ - "rgba(255,182,185,.9)"
111
+ - "rgba(250,227,217,.9)"
112
+ - "rgba(187,222,214,.9)"
113
+ - "rgba(138,198,209,.9)"
114
+ number: 30
115
+ duration: [1200, 1800]
116
+ shapeOptions:
117
+ radius: [16, 32]
118
+ - shape: circle
119
+ move: ["diffuse"]
120
+ easing: easeOutExpo
121
+ colors: ["#fff"]
122
+ number: 1
123
+ duration: [1200, 1800]
124
+ shapeOptions:
125
+ radius: 20
126
+ alpha: 0.5
127
+ lineWidth: 6
128
+
129
+ font:
130
+ enable: true
131
+ # 从google字体库加载,如果自定义@font-face请关闭
132
+ loadFromGoogle: true
133
+ # 字体选项:
134
+ # `external`:从google字体库加载字体.
135
+ # `family: 字体家族名,无需引号
136
+ # `size: x.x`. 以`em`为单位. 默认: 1 (16px)
137
+
138
+ # 适用于所有在body标签内的文字.
139
+ global:
140
+ external: true
141
+ family: Mulish
142
+ size:
143
+
144
+ # 大标题字体.
145
+ logo:
146
+ external: true
147
+ family: Fredericka the Great
148
+ size: 3.5
149
+
150
+ # 页面标题字体.
151
+ title:
152
+ external: true
153
+ family: Noto Serif JP
154
+ size: 2.5
155
+
156
+ # 标题字体.
157
+ headings:
158
+ external: true
159
+ family: Noto Serif SC
160
+ size:
161
+
162
+ # 文章字体.
163
+ posts:
164
+ external: false
165
+ family:
166
+
167
+ # 代码块的字体
168
+ codes:
169
+ external: true
170
+ family: Inconsolata
171
+
172
+ # //at.alicdn.com/t/c/font_4415496_59g1326wajd.css => 4415496_59g1326wajd
173
+ # 自定义iconfont图标参见文档教程
174
+ iconfont: "4415496_59g1326wajd"
175
+
176
+ menu:
177
+ home: / || home
178
+ # about:
179
+ # default: / || user
180
+ # aboutsite: /about/ || user
181
+ # admiration: /admiration/ || coffee
182
+ # posts:
183
+ # default: / || feather
184
+ # archives: /archives/ || list-alt
185
+ # categories: /categories/ || th
186
+ # tags: /tags/ || tags
187
+ # friends: /friends/ || heart
188
+
189
+ # https://twikoo.js.org
190
+ twikoo:
191
+ enable: false
192
+ link: "https://cdn.staticfile.org/twikoo/1.6.30/twikoo.all.min.js"
193
+ mode: vercel # vercel或tencent
194
+ envId: "https://example.com" # twikoo环境ID,vercel填地址
195
+ region:
196
+
197
+ # https://waline.js.org/
198
+ waline:
199
+ enable: false
200
+ serverURL: ""
201
+ lang: "zh-CN"
202
+ locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
203
+ emoji: # 表情包
204
+ - https://unpkg.com/@waline/emojis@1.0.1/weibo
205
+ - https://unpkg.com/@waline/emojis@1.0.1/alus
206
+ - https://unpkg.com/@waline/emojis@1.0.1/bilibili
207
+ - https://unpkg.com/@waline/emojis@1.0.1/qq
208
+ - https://unpkg.com/@waline/emojis@1.0.1/tieba
209
+ - https://unpkg.com/@waline/emojis@1.0.1/tw-emoji
210
+ meta: # 可以填写的内容
211
+ - nick
212
+ - mail
213
+ - link
214
+ requiredMeta: # 必须填写的内容
215
+ - nick
216
+ - mail
217
+ wordLimit: 0 # 字数限制,0为不限制
218
+ pageSize: 10 # 每页评论条数
219
+ pageview: false # 是否开启浏览量统计,可独立开启
220
+
221
+ summary:
222
+ enable: false
223
+ introduce: "我是基于ChatGPT-turbo-3.5实现的AI助手,在此网站上负责整理和概括文章" # AI自我介绍
224
+ mode: openai # openai/custom
225
+ pricing: "trial" # trial为试用模板(3 RPM);pay为即用即付模板(60 RPM)
226
+ openai:
227
+ remote: "https://api.openai.com"
228
+ apikey: "key"
229
+
230
+
231
+ # Social Links
232
+ # Usage: `Key: permalink || icon || color`
233
+ # Key is the link label showing to end users.
234
+ # Value before `||` delimiter is the target permalink,
235
+ # secend value is the name of Font icon.
236
+ social:
237
+ github: https://github.com/yourname || github || "#191717"
238
+ #gitee: https://gitee.com/yourname || gitee || "#e60026"
239
+ #google: https://plus.google.com/yourname || google
240
+ #twitter: https://twitter.com/yourname || twitter || "#00aff0"
241
+ #zhihu: https://www.zhihu.com/people/yourname || zhihu || "#1e88e5"
242
+ #music: https://music.163.com/#/user/home?id=yourid || cloud-music || "#e60026"
243
+ #weibo: https://weibo.com/yourname || weibo || "#ea716e"
244
+ #about: https://about.me/yourname || address-card || "#3b5998"
245
+ #email: mailto:foo@xxx.com || envelope || "#55acd5"
246
+ #facebook: https://www.facebook.com/yourname || facebook
247
+ #stackoverflow: https://stackoverflow.com/ || stack-overflow
248
+ #youtube: https://youtube.com/yourname || youtube
249
+ #instagram: https://instagram.com/yourname || instagram
250
+ #skype: skype:yourname?call|chat || skype
251
+ #douban: https://www.douban.com/people/yourname/ || douban
252
+
253
+ sidebar:
254
+ # Sidebar Position.
255
+ position: left
256
+ # position: right
257
+ # Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
258
+ avatar: avatar.jpg
259
+
260
+ widgets:
261
+ # if true, will show random posts
262
+ random_posts: true
263
+ # if true, will show recent comments
264
+ recent_comments: true
265
+
266
+ footer:
267
+ # Specify the date when the site was set up. If not defined, current year will be used.
268
+ since: 2022
269
+ icon:
270
+ name: sakura rotate
271
+ # Change the color of icon, using Hex Code.
272
+ color: "#ffc0cb"
273
+ # Dependencies: https://github.com/theme-next/hexo-symbols-count-time
274
+ count: true
275
+ powered: true
276
+ lantern:
277
+ enable: true #是否开启
278
+ word1: 中 #第一个字
279
+ word2: 秋 #第二个字
280
+ icp: # ICP备案
281
+ enable: false
282
+ # 请在登录后从 https://beian.mps.gov.cn/web/business/businessHome/website 下载对应图标
283
+ icon: "" #网安备案图片
284
+ icpnumber: "xxx" # ICP备案号
285
+ beian: "xxx" # 网安备案号
286
+ recordcode: "xxx" # 网安备案链接中的recordcode参数
287
+
288
+ post:
289
+ count: true
290
+
291
+ # 文章是否失效
292
+ outime:
293
+ enable: false
294
+ days: 90 # 超过 90 天文章失效
295
+
296
+ reward:
297
+ # If true, reward will be displayed in every article by default.
298
+ enable: true
299
+ account:
300
+ wechatpay: /wechatpay.png
301
+ alipay: /alipay.png
302
+ # paypal: /paypal.png
303
+
304
+ # TagCloud settings for tags page.
305
+ tagcloud:
306
+ # All values below are same as default, change them by yourself.
307
+ min: 16 # Minimun font size in px
308
+ max: 22 # Maxium font size in px
309
+ start: "#72cecf" # Start color (hex, rgba, hsla or color keywords)
310
+ end: "#ffbac3" # End color (hex, rgba, hsla or color keywords)
311
+ amount: 200 # Amount of tags, change it if you have more than 200 tags
312
+
313
+ # ---------------------------------------------------------------
314
+ # Third Party Plugins & Services Settings
315
+ # ---------------------------------------------------------------
316
+
317
+ # Creative Commons 4.0 International License.
318
+ # See: https://creativecommons.org/share-your-work/licensing-types-examples
319
+ # Available values of license: by | by-nc | by-nc-nd | by-nc-sa | by-nd | by-sa | zero
320
+ # You can set a language value if you prefer a translated version of CC license, e.g. deed.zh
321
+ # CC licenses are available in 39 languages, you can find the specific and correct abbreviation you need on https://creativecommons.org
322
+ creative_commons:
323
+ license: by-nc-sa
324
+ language: deed.zh
325
+
326
+ # bgm
327
+ # 不使用请打开noplayer功能
328
+ audio:
329
+ # - title: 列表1
330
+ # list:
331
+ # - https://music.163.com/#/playlist?id=2943811283
332
+ # - https://music.163.com/#/playlist?id=2297706586
333
+ # - title: 列表2
334
+ # list:
335
+ # - https://music.163.com/#/playlist?id=2031842656
336
+
337
+ # random image api
338
+ image_server: # "https://acg.xydwz.cn/api/api.php"
339
+
340
+ # Algolia Search
341
+ # For more information: https://www.algolia.com
342
+ search:
343
+ hits:
344
+ per_page: 10
345
+
346
+ # Dependencies: https://github.com/amehime/hexo-renderer-multi-markdown-it
347
+ pangu: false
348
+
349
+ # Quicklink Support
350
+ # For more information: https://github.com/GoogleChromeLabs/quicklink
351
+ quicklink:
352
+ # Custom a time in milliseconds by which the browser must execute prefetching.
353
+ timeout: 3000
354
+ # Default (true) will attempt to use the fetch() API if supported (rather than link[rel=prefetch]).
355
+ priority: true
356
+
357
+ # For more flexibility you can add some patterns (RegExp, Function, or Array) to ignores.
358
+ # See: https://github.com/GoogleChromeLabs/quicklink#custom-ignore-patterns
359
+ ignores:
360
+
361
+ #! ---------------------------------------------------------------
362
+ #! DO NOT EDIT THE FOLLOWING `vendors` SETTINGS
363
+ #! UNLESS YOU KNOW WHAT YOU ARE DOING
364
+ #! ---------------------------------------------------------------
365
+ vendors:
366
+ cdns:
367
+ npm_webcache: https://npm.webcache.cn
368
+ bytedance: https://lf9-cdn-tos.bytecdntp.com/cdn/expire-6-M
369
+ cdnjs_webcache: https://cdnjs.webstatic.cn/ajax/libs
370
+ cdnjs: https://cdnjs.cloudflare.com/ajax/libs
371
+ unpkg: https://unpkg.com
372
+ js:
373
+ pace: bytedance|pace/1.2.4/pace.min.js
374
+ async_js:
375
+ fancybox: bytedance|??jquery/3.5.1/jquery.min.js,fancybox/3.5.7/jquery.fancybox.min.js,justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js
376
+ # copy_tex: npm_webcache|katex@0.16.7/dist/contrib/copy-tex.min.js
377
+ css:
378
+ # katex: npm_webcache|katex@0.16.7/dist/katex.min.css
379
+ comment: css/comment.css
380
+ fancybox: npm_webcache|@fancyapps/fancybox@3.5.7/dist/jquery.fancybox.min.css
381
+ justifiedGallery: npm_webcache|justifiedGallery@3.8.1/dist/css/justifiedGallery.min.css