hexo-theme-solitude 2.0.9 → 2.0.11

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 (39) hide show
  1. package/.github/PULL_REQUEST_TEMPLATE.md +1 -8
  2. package/CONTRIBUTING.md +1 -1
  3. package/LICENSE +1 -1
  4. package/README.md +1 -1
  5. package/README_zh-Hans.md +3 -3
  6. package/README_zh-Hant.md +2 -2
  7. package/SECURITY.md +4 -4
  8. package/_config.yml +20 -29
  9. package/layout/includes/console.pug +1 -1
  10. package/layout/includes/inject/body.pug +104 -100
  11. package/layout/includes/nav.pug +2 -2
  12. package/layout/includes/widgets/aside/aside.pug +1 -1
  13. package/layout/includes/widgets/home/postList.pug +1 -20
  14. package/layout/includes/widgets/home/topGroup.pug +5 -5
  15. package/layout/includes/widgets/page/links/banner.pug +1 -2
  16. package/layout/includes/widgets/post/copyright.pug +1 -1
  17. package/layout/includes/widgets/randomlink.pug +1 -2
  18. package/package.json +5 -4
  19. package/plugins.yml +16 -5
  20. package/scripts/event/merge_config.js +415 -423
  21. package/scripts/helper/inject_head_js.js +13 -7
  22. package/scripts/tags/article.js +39 -0
  23. package/scripts/tags/chart.js +27 -0
  24. package/scripts/tags/gallery.js +1 -1
  25. package/scripts/tags/typeit.js +29 -0
  26. package/source/css/_global/function.styl +1 -1
  27. package/source/css/_layout/article-container.styl +2 -2
  28. package/source/css/_layout/console.styl +7 -4
  29. package/source/css/_layout/recent-post.styl +53 -75
  30. package/source/css/_page/_home/home-top.styl +8 -13
  31. package/source/css/_page/recentcomment.styl +1 -3
  32. package/source/css/_post/meta.styl +2 -2
  33. package/source/css/_tags/gallery.styl +2 -1
  34. package/source/css/var.styl +7 -7
  35. package/source/js/covercolor/local.js +10 -82
  36. package/source/js/main.js +1 -1
  37. package/source/js/utils.js +1 -7
  38. package/.editorconfig +0 -9
  39. package/.github/workflows/stale.yml +0 -19
@@ -1,428 +1,420 @@
1
1
  hexo.extend.filter.register('before_generate', () => {
2
- const defaultConfig = {
3
- site: {
4
- name: {
5
- class: 'text',
6
- custom: 'Solitude'
7
- },
8
- siteIcon: '/img/pwa/favicon.ico',
9
- icon: 'icon'
10
- },
11
- nav: {
12
- group: null,
13
- menu: null,
14
- right: {
15
- random: false,
16
- custom: [],
17
- }
18
- },
19
- hometop: {
20
- enable: false,
21
- banner: {
22
- title: 'Solitude',
23
- url: 'A simple theme for Hexo',
24
- icon: null,
25
- },
26
- group: null,
27
- recommendList: {
28
- sup: 'Recommend',
29
- title: 'Solitude Docs',
30
- url: 'https://solitude.js.org/',
31
- img: '/img/default.avif',
32
- color: 'none',
33
- }
34
- },
35
- aside: {
36
- home: {
37
- noSticky: 'about',
38
- Sticky: 'allInfo'
39
- },
40
- post: {
41
- noSticky: 'about',
42
- Sticky: 'allInfo'
43
- },
44
- page: {
45
- noSticky: 'about',
46
- Sticky: 'allInfo'
47
- },
48
- card: {
49
- style: 0,
50
- author: {
51
- img: '/img/logo.png',
52
- sticker: '/img/happy-sticker.avif',
53
- },
54
- url: '/about/',
55
- background: null,
56
- content1: 'Solitude',
57
- content2: 'A simple theme for Hexo',
58
- sayhello: {
59
- morning: 'Good Morning',
60
- noon: 'Good Noon',
61
- afternoon: 'Good Afternoon',
62
- night: 'Good Night',
63
- goodnight: 'Good Night',
64
- },
65
- sayhello2: ['Welcome to Solitude', 'A simple theme for Hexo', 'Enjoy your time', 'Have a nice day', 'Good luck'],
66
- information: null,
67
- },
68
- flip: {
69
- favicon: '',
70
- face: '',
71
- backface: '',
72
- backcolor: 'var(--efu-blue)'
73
- },
74
- newest_comment: {
75
- enable: false,
76
- storage: .5,
77
- limit: 5
78
- },
79
- toc: {
80
- post: true,
81
- page: false,
82
- vague: true,
83
- },
84
- tags: {
85
- enable: true,
86
- limit: 20,
87
- highlight: false,
88
- list: [],
89
- },
90
- archive: {
91
- enable: true,
92
- type: 'month'
93
- },
94
- siteinfo: {
95
- postcount: true,
96
- wordcount: false,
97
- pv: true,
98
- uv: true,
99
- updatetime: true,
100
- runtimeenable: true,
101
- runtime: "2023-04-20 00:00:00",
102
- },
103
- },
104
- index_post_list: {
105
- direction: 'column',
106
- column: 2,
107
- content: false,
108
- length: 500,
109
- cover: 'both'
110
- },
111
- page: {
112
- error: true,
113
- tags: true,
114
- categories: true,
115
- archives: 0,
116
- default: {
117
- cover: ['/img/default.avif'],
118
- }
119
- },
120
- post: {
121
- default: {
122
- top_cover: true,
123
- cover: ['/img/default.avif'],
124
- locate: 'China, Changsha',
125
- copyright: {
126
- enable: true,
127
- license: 'CC BY-NC-SA 4.0',
128
- licenurl: 'https://creativecommons.org/licenses/by-nc-sa/4.0/',
129
- }
130
- },
131
- meta: {
132
- date: false,
133
- updated: false,
134
- locate: false,
135
- wordcount: false,
136
- readtime: false,
137
- pv: false,
138
- uv: false,
139
- comment: false,
140
- },
141
- award: {
142
- enable: false,
143
- appreciators: '/',
144
- title: '感谢您的赞赏。',
145
- desc: '因为有你们的支持,我才体会到写文章的价值。',
146
- list: [],
147
- },
148
- rss: null,
149
- covercolor: {
150
- enable: false,
151
- mode: 'local',
152
- api: 'https://api.qjqq.cn/api/Imgcolor?img=',
153
- time: 43200000,
154
- },
155
- share: {
156
- enable: false,
157
- list: []
158
- },
159
- footer: {
160
- enable: true,
161
- desc: "The article from Solitude",
162
- button: {
163
- enable: true,
164
- name: 'Learn More',
165
- url: '/'
166
- }
167
- }
168
- },
169
- theme_color: {
170
- dark: "#ffc848",
171
- dark_op: "#f2b94b23",
172
- dark_op_deep: "#f2b94bdd",
173
- dark_none: "#f2b94b00",
174
- light: "#425AEF",
175
- light_op: "#4259ef23",
176
- light_op_deep: "#4259efdd",
177
- light_none: "#4259ef01"
178
- },
179
- display_mode: {
180
- type: 'auto',
181
- universe: false
182
- },
183
- related_post: {
184
- enable: false,
185
- limit: 2,
186
- date_type: 'created'
187
- },
188
- footer: {
189
- information: {
190
- author: false,
191
- left: null,
192
- right: null,
193
- },
194
- group: null,
195
- randomlink: false,
196
- privacy: null,
197
- license: null,
198
- links: [{
199
- name: 'Solitude',
200
- url: 'https://github.com/everfu/hexo-theme-solitude',
201
- }]
202
- },
203
- errorpage: {
204
- img: 'https://7.isyangs.cn/34/65f2e65eae32a-34.png',
205
- text: '404 Not Found',
206
- recommendList: true
207
- },
208
- says: {
209
- enable: false,
210
- home_mini: false,
211
- style: 1,
212
- strip: 30
213
- },
214
- recent_comments: {
215
- enable: false,
216
- limit: 50,
217
- console: false,
218
- page: '/recentcomments/'
219
- },
220
- envelope: {
221
- enable: false,
222
- line: 10,
223
- speed: 20,
224
- hover: true,
225
- loop: true,
226
- page: '/message/'
227
- },
228
- meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r",
229
- music: {
230
- enable: false,
231
- id: '8407304077',
232
- server: 'netease',
233
- type: 'playlist',
234
- volume: 0.8,
235
- mutex: true,
236
- },
237
- capsule: {
238
- enable: false,
239
- id: '8407304077',
240
- server: 'netease',
241
- type: 'playlist',
242
- },
243
- keyboard: {
244
- enable: false,
245
- list: []
246
- },
247
- lazyload: {
248
- enable: false,
249
- field: 'site',
250
- placeholder: '/img/loading.avif',
251
- errorimg: '/img/error_load.avif'
252
- },
253
- loading: {
254
- fullpage: false,
255
- pace: true,
256
- },
257
- highlight: {
258
- enable: true,
259
- limit: 200,
260
- copy: true,
261
- expand: true,
262
- theme: 'default',
263
- color: 'default',
264
- },
265
- lightbox: false,
266
- fancybox: false,
267
- mediumZoom: false,
268
- mermaid: false,
269
- OpenGraph: {
270
- enable: false,
271
- options: null
272
- },
2
+ const defaultConfig = {
3
+ site: {
4
+ name: {
5
+ class: 'text',
6
+ custom: 'Solitude'
7
+ },
8
+ siteIcon: '/img/pwa/favicon.ico',
9
+ icon: 'icon'
10
+ },
11
+ nav: {
12
+ group: null,
13
+ menu: null,
14
+ right: {
15
+ random: false,
16
+ custom: [],
17
+ }
18
+ },
19
+ hometop: {
20
+ enable: false,
21
+ banner: {
22
+ title: 'Solitude',
23
+ url: 'A simple theme for Hexo',
24
+ icon: null,
25
+ },
26
+ group: null,
27
+ recommendList: {
28
+ sup: 'Recommend',
29
+ title: 'Solitude Docs',
30
+ url: 'https://solitude.js.org/',
31
+ img: '/img/default.avif',
32
+ color: 'none',
33
+ }
34
+ },
35
+ aside: {
36
+ home: {
37
+ noSticky: 'about',
38
+ Sticky: 'allInfo'
39
+ },
40
+ post: {
41
+ noSticky: 'about',
42
+ Sticky: 'allInfo'
43
+ },
44
+ page: {
45
+ noSticky: 'about',
46
+ Sticky: 'allInfo'
47
+ },
48
+ card: {
49
+ style: 0,
50
+ author: {
51
+ img: '/img/logo.png',
52
+ sticker: '/img/happy-sticker.avif',
53
+ },
54
+ url: '/about/',
55
+ background: null,
56
+ content1: 'Solitude',
57
+ content2: 'A simple theme for Hexo',
58
+ sayhello: {
59
+ morning: 'Good Morning',
60
+ noon: 'Good Noon',
61
+ afternoon: 'Good Afternoon',
62
+ night: 'Good Night',
63
+ goodnight: 'Good Night',
64
+ },
65
+ sayhello2: ['Welcome to Solitude', 'A simple theme for Hexo', 'Enjoy your time', 'Have a nice day', 'Good luck'],
66
+ information: null,
67
+ },
68
+ flip: {
69
+ favicon: '',
70
+ face: '',
71
+ backface: '',
72
+ backcolor: 'var(--efu-blue)'
73
+ },
74
+ newest_comment: {
75
+ enable: false,
76
+ storage: .5,
77
+ limit: 5
78
+ },
79
+ toc: {
80
+ post: true,
81
+ page: false,
82
+ vague: true,
83
+ },
84
+ tags: {
85
+ enable: true,
86
+ limit: 20,
87
+ highlight: false,
88
+ list: [],
89
+ },
90
+ archive: {
91
+ enable: true,
92
+ type: 'month'
93
+ },
94
+ siteinfo: {
95
+ postcount: true,
273
96
  wordcount: false,
274
- busuanzi: false,
275
- search: {
276
- enable: false,
277
- type: 'local',
278
- tags: [],
279
- algolia: null,
280
- local: {
281
- preload: false,
282
- CDN: null,
283
- }
284
- },
285
- rightside: {
286
- enable: false
287
- },
288
- copy: {
289
- enable: true,
290
- copyright: {
291
- enable: false,
292
- limit: 50
293
- }
294
- },
295
- post_ai: {
296
- enable: false,
297
- modelName: 'GPT 3',
298
- key: 'your key',
299
- talk: 'I am a AI.',
300
- randomPost: false,
301
- tips: 'AI is not perfect, please use it with caution.'
302
- },
303
- katex: {
304
- enable: false,
305
- per_page: false,
306
- copytex: false,
307
- },
308
- comment: {
309
- use: null,
310
- commentBarrage: false,
311
- lazyload: false,
312
- count: false,
313
- avatar: 'https://gravatar.com/avatar',
314
- hot_tip: {
315
- enable: true,
316
- count: 3
317
- }
318
- },
319
- twikoo: {
320
- envId: 'your envId',
321
- region: null,
322
- style: true,
323
- accessToken: null,
324
- option: null,
325
- },
326
- waline: {
327
- envId: 'your envId',
328
- pageview: true,
329
- option: null,
330
- },
331
- valine: {
332
- appId: 'your appId',
333
- appKey: 'your appKey',
334
- serverURLs: 'your serverURLs',
335
- avatar: 'monsterid',
336
- visitor: false,
337
- style: true,
338
- option: null,
339
- },
340
- artalk: {
341
- server: 'your server',
342
- site: 'your site-name',
343
- option: null,
344
- },
345
- console: {
346
- enable: false,
347
- recentComment: {
348
- enable: false,
349
- storage: .2,
350
- },
351
- card: {
352
- tags: true,
353
- archive: true
354
- }
355
- },
356
- verify_site: [],
357
- css_prefix: false,
358
- font: {
359
- 'font-size': '16px',
360
- 'code-font-size': '16px',
361
- 'font-family': 'PingFang SC, Hiragino Sans GB,Microsoft YaHei',
362
- 'code-font-family': 'monospace, monospace',
363
- },
364
- extends: {
365
- head: [],
366
- body: [],
367
- },
368
- pwa: {
369
- enable: false,
370
- manifest: '/manifest.json',
371
- theme_color: "#006a73",
372
- mask_icon: '/img/pwa/favicon.ico',
373
- apple_touch_icon: '/img/pwa/favicon.ico',
374
- bookmark_icon: '/img/pwa/favicon.ico',
375
- favicon_32_32: '/img/pwa/favicon_32.ico',
376
- favicon_16_16: '/img/pwa/favicon_16.ico'
377
- },
378
- google_adsense: {
379
- enable: false,
380
- auto_ads: false,
381
- aside_card: false,
382
- post_card: false,
383
- post_content: false,
384
- enable_page_level_ads: false,
385
- js: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
386
- client: '',
387
- slot: '',
388
- },
389
- right_menu: {
390
- enable: false,
391
- commentBarrage: false,
392
- translate: {
393
- enable: false,
394
- defaultEncoding: 2,
395
- translateDelay: 0,
396
- },
397
- custom_list: []
398
- },
399
- lure: {
400
- enable: false,
401
- jump: '404 Not Found',
402
- back: 'ヾ(≧∇≦*)ゝ嘿嘿,上当了吧'
403
- },
404
- expire: {
405
- enable: false,
406
- time: 30,
407
- position: 'top',
408
- text_prev: '本文已于',
409
- text_next: '天前过期,如果内容不符,请联系站长更新。',
410
- },
411
- background: {
412
- enable: false,
413
- dark: 'https://bu.dusays.com/2023/09/29/651685ce667d1.jpg',
414
- light: 'https://bu.dusays.com/2023/09/29/651685cc18d39.jpg',
415
- opacity: .2,
416
- },
417
- CDN: {
418
- internal: 'local',
419
- third_party: 'cdnjs',
420
- version: true,
421
- custom_format: 'https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}',
422
- option: {
423
- solitude_css: 'https://cdn2.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css',
424
- }
97
+ pv: true,
98
+ uv: true,
99
+ updatetime: true,
100
+ runtimeenable: true,
101
+ runtime: "2023-04-20 00:00:00",
102
+ },
103
+ },
104
+ index_post_list: {
105
+ direction: 'column',
106
+ column: 2,
107
+ cover: 'both'
108
+ },
109
+ page: {
110
+ error: true,
111
+ tags: true,
112
+ categories: true,
113
+ archives: 0,
114
+ default: {
115
+ cover: ['/img/default.avif'],
116
+ }
117
+ },
118
+ post: {
119
+ default: {
120
+ top_cover: true,
121
+ cover: ['/img/default.avif'],
122
+ locate: 'China, Changsha',
123
+ copyright: {
124
+ enable: true,
125
+ license: 'CC BY-NC-SA 4.0',
126
+ licenurl: 'https://creativecommons.org/licenses/by-nc-sa/4.0/',
127
+ }
128
+ },
129
+ meta: {
130
+ date: false,
131
+ updated: false,
132
+ locate: false,
133
+ wordcount: false,
134
+ readtime: false,
135
+ pv: false,
136
+ uv: false,
137
+ comment: false,
138
+ },
139
+ award: {
140
+ enable: false,
141
+ appreciators: '/',
142
+ title: '感谢您的赞赏。',
143
+ desc: '因为有你们的支持,我才体会到写文章的价值。',
144
+ list: [],
145
+ },
146
+ rss: null,
147
+ covercolor: {
148
+ enable: false,
149
+ mode: 'local',
150
+ api: 'https://api.qjqq.cn/api/Imgcolor?img=',
151
+ time: 43200000,
152
+ },
153
+ share: {
154
+ enable: false,
155
+ list: []
156
+ },
157
+ footer: {
158
+ enable: true,
159
+ desc: "The article from Solitude",
160
+ button: {
161
+ enable: true,
162
+ name: 'Learn More',
163
+ url: '/'
425
164
  }
165
+ }
166
+ },
167
+ theme_color: {
168
+ dark: "#ffc848",
169
+ light: "#425AEF"
170
+ },
171
+ display_mode: {
172
+ type: 'auto',
173
+ universe: false
174
+ },
175
+ related_post: {
176
+ enable: false,
177
+ limit: 2,
178
+ date_type: 'created'
179
+ },
180
+ footer: {
181
+ information: {
182
+ author: false,
183
+ left: null,
184
+ right: null,
185
+ },
186
+ group: null,
187
+ randomlink: false,
188
+ privacy: null,
189
+ license: null,
190
+ links: [{
191
+ name: 'Solitude',
192
+ url: 'https://github.com/everfu/hexo-theme-solitude',
193
+ }]
194
+ },
195
+ errorpage: {
196
+ img: 'https://7.isyangs.cn/34/65f2e65eae32a-34.png',
197
+ text: '404 Not Found',
198
+ recommendList: true
199
+ },
200
+ says: {
201
+ enable: false,
202
+ home_mini: false,
203
+ style: 1,
204
+ strip: 30
205
+ },
206
+ recent_comments: {
207
+ enable: false,
208
+ limit: 50,
209
+ console: false,
210
+ page: '/recentcomments/'
211
+ },
212
+ envelope: {
213
+ enable: false,
214
+ line: 10,
215
+ speed: 20,
216
+ hover: true,
217
+ loop: true,
218
+ page: '/message/'
219
+ },
220
+ meting_api: "https://meting.qjqq.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r",
221
+ music: {
222
+ enable: false,
223
+ id: '8407304077',
224
+ server: 'netease',
225
+ type: 'playlist',
226
+ volume: 0.8,
227
+ mutex: true,
228
+ },
229
+ capsule: {
230
+ enable: false,
231
+ id: '8407304077',
232
+ server: 'netease',
233
+ type: 'playlist',
234
+ },
235
+ keyboard: {
236
+ enable: false,
237
+ list: []
238
+ },
239
+ lazyload: {
240
+ enable: false,
241
+ field: 'site',
242
+ placeholder: '/img/loading.avif',
243
+ errorimg: '/img/error_load.avif'
244
+ },
245
+ loading: {
246
+ fullpage: false,
247
+ pace: true,
248
+ },
249
+ highlight: {
250
+ enable: true,
251
+ limit: 200,
252
+ copy: true,
253
+ expand: true,
254
+ theme: 'default',
255
+ color: 'default',
256
+ },
257
+ lightbox: false,
258
+ fancybox: false,
259
+ mediumZoom: false,
260
+ mermaid: false,
261
+ chart: false,
262
+ typeit: false,
263
+ OpenGraph: {
264
+ enable: false,
265
+ options: null
266
+ },
267
+ wordcount: false,
268
+ busuanzi: false,
269
+ search: {
270
+ enable: false,
271
+ type: 'local',
272
+ tags: [],
273
+ algolia: null,
274
+ local: {
275
+ preload: false,
276
+ CDN: null,
277
+ }
278
+ },
279
+ rightside: {
280
+ enable: false
281
+ },
282
+ copy: {
283
+ enable: true,
284
+ copyright: {
285
+ enable: false,
286
+ limit: 50
287
+ }
288
+ },
289
+ post_ai: {
290
+ enable: false,
291
+ modelName: 'GPT 3',
292
+ key: 'your key',
293
+ talk: '我是 Ai 机器人',
294
+ randomPost: false,
295
+ tips: 'AI is not perfect, please use it with caution.'
296
+ },
297
+ katex: {
298
+ enable: false,
299
+ per_page: false,
300
+ copytex: false,
301
+ },
302
+ comment: {
303
+ use: null,
304
+ commentBarrage: false,
305
+ lazyload: false,
306
+ count: false,
307
+ avatar: 'https://gravatar.com/avatar',
308
+ hot_tip: {
309
+ enable: true,
310
+ count: 3
311
+ }
312
+ },
313
+ twikoo: {
314
+ envId: 'your envId',
315
+ region: null,
316
+ style: true,
317
+ accessToken: null,
318
+ option: null,
319
+ },
320
+ waline: {
321
+ envId: 'your envId',
322
+ pageview: true,
323
+ option: null,
324
+ },
325
+ valine: {
326
+ appId: 'your appId',
327
+ appKey: 'your appKey',
328
+ serverURLs: 'your serverURLs',
329
+ avatar: 'monsterid',
330
+ visitor: false,
331
+ style: true,
332
+ option: null,
333
+ },
334
+ artalk: {
335
+ server: 'your server',
336
+ site: 'your site-name',
337
+ option: null,
338
+ },
339
+ console: {
340
+ enable: false,
341
+ recentComment: {
342
+ enable: false,
343
+ storage: .2,
344
+ },
345
+ card: {
346
+ tags: true,
347
+ archive: true
348
+ }
349
+ },
350
+ verify_site: [],
351
+ css_prefix: false,
352
+ font: {
353
+ 'font-size': '16px',
354
+ 'code-font-size': '16px',
355
+ 'font-family': 'PingFang SC, Hiragino Sans GB,Microsoft YaHei',
356
+ 'code-font-family': '"monospace", monospace',
357
+ },
358
+ extends: {
359
+ head: [],
360
+ body: [],
361
+ },
362
+ pwa: {
363
+ enable: false,
364
+ manifest: '/manifest.json',
365
+ theme_color: "#006a73",
366
+ mask_icon: '/img/pwa/favicon.ico',
367
+ apple_touch_icon: '/img/pwa/favicon.ico',
368
+ bookmark_icon: '/img/pwa/favicon.ico',
369
+ favicon_32_32: '/img/pwa/favicon_32.ico',
370
+ favicon_16_16: '/img/pwa/favicon_16.ico'
371
+ },
372
+ google_adsense: {
373
+ enable: false,
374
+ auto_ads: false,
375
+ aside_card: false,
376
+ post_card: false,
377
+ post_content: false,
378
+ enable_page_level_ads: false,
379
+ js: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
380
+ client: '',
381
+ slot: '',
382
+ },
383
+ right_menu: {
384
+ enable: false,
385
+ commentBarrage: false,
386
+ translate: {
387
+ enable: false,
388
+ defaultEncoding: 2,
389
+ translateDelay: 0,
390
+ },
391
+ custom_list: []
392
+ },
393
+ lure: {
394
+ enable: false,
395
+ jump: '404 Not Found',
396
+ back: 'ヾ(≧∇≦*)ゝ嘿嘿,上当了吧'
397
+ },
398
+ expire: {
399
+ enable: false,
400
+ time: 30,
401
+ position: 'top',
402
+ text_prev: '本文已于',
403
+ text_next: '天前过期,如果内容不符,请联系站长更新。',
404
+ },
405
+ background: {
406
+ enable: false,
407
+ dark: 'https://bu.dusays.com/2023/09/29/651685ce667d1.jpg',
408
+ light: 'https://bu.dusays.com/2023/09/29/651685cc18d39.jpg',
409
+ opacity: .2,
410
+ },
411
+ CDN: {
412
+ internal: 'local',
413
+ third_party: 'cdnjs',
414
+ version: true,
415
+ custom_format: '//open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}',
416
+ option: {}
426
417
  }
427
- hexo.theme.config = Object.assign(defaultConfig, hexo.theme.config)
418
+ }
419
+ hexo.theme.config = Object.assign(defaultConfig, hexo.theme.config)
428
420
  }, 1)