hexo-theme-solitude 2.0.9 → 2.0.10

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.
@@ -1,428 +1,430 @@
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
+ 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: '/'
425
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
+ chart: false,
270
+ typeit: false,
271
+ OpenGraph: {
272
+ enable: false,
273
+ options: null
274
+ },
275
+ wordcount: false,
276
+ busuanzi: false,
277
+ search: {
278
+ enable: false,
279
+ type: 'local',
280
+ tags: [],
281
+ algolia: null,
282
+ local: {
283
+ preload: false,
284
+ CDN: null,
285
+ }
286
+ },
287
+ rightside: {
288
+ enable: false
289
+ },
290
+ copy: {
291
+ enable: true,
292
+ copyright: {
293
+ enable: false,
294
+ limit: 50
295
+ }
296
+ },
297
+ post_ai: {
298
+ enable: false,
299
+ modelName: 'GPT 3',
300
+ key: 'your key',
301
+ talk: 'I am a AI.',
302
+ randomPost: false,
303
+ tips: 'AI is not perfect, please use it with caution.'
304
+ },
305
+ katex: {
306
+ enable: false,
307
+ per_page: false,
308
+ copytex: false,
309
+ },
310
+ comment: {
311
+ use: null,
312
+ commentBarrage: false,
313
+ lazyload: false,
314
+ count: false,
315
+ avatar: 'https://gravatar.com/avatar',
316
+ hot_tip: {
317
+ enable: true,
318
+ count: 3
319
+ }
320
+ },
321
+ twikoo: {
322
+ envId: 'your envId',
323
+ region: null,
324
+ style: true,
325
+ accessToken: null,
326
+ option: null,
327
+ },
328
+ waline: {
329
+ envId: 'your envId',
330
+ pageview: true,
331
+ option: null,
332
+ },
333
+ valine: {
334
+ appId: 'your appId',
335
+ appKey: 'your appKey',
336
+ serverURLs: 'your serverURLs',
337
+ avatar: 'monsterid',
338
+ visitor: false,
339
+ style: true,
340
+ option: null,
341
+ },
342
+ artalk: {
343
+ server: 'your server',
344
+ site: 'your site-name',
345
+ option: null,
346
+ },
347
+ console: {
348
+ enable: false,
349
+ recentComment: {
350
+ enable: false,
351
+ storage: .2,
352
+ },
353
+ card: {
354
+ tags: true,
355
+ archive: true
356
+ }
357
+ },
358
+ verify_site: [],
359
+ css_prefix: false,
360
+ font: {
361
+ 'font-size': '16px',
362
+ 'code-font-size': '16px',
363
+ 'font-family': 'PingFang SC, Hiragino Sans GB,Microsoft YaHei',
364
+ 'code-font-family': 'monospace, monospace',
365
+ },
366
+ extends: {
367
+ head: [],
368
+ body: [],
369
+ },
370
+ pwa: {
371
+ enable: false,
372
+ manifest: '/manifest.json',
373
+ theme_color: "#006a73",
374
+ mask_icon: '/img/pwa/favicon.ico',
375
+ apple_touch_icon: '/img/pwa/favicon.ico',
376
+ bookmark_icon: '/img/pwa/favicon.ico',
377
+ favicon_32_32: '/img/pwa/favicon_32.ico',
378
+ favicon_16_16: '/img/pwa/favicon_16.ico'
379
+ },
380
+ google_adsense: {
381
+ enable: false,
382
+ auto_ads: false,
383
+ aside_card: false,
384
+ post_card: false,
385
+ post_content: false,
386
+ enable_page_level_ads: false,
387
+ js: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js',
388
+ client: '',
389
+ slot: '',
390
+ },
391
+ right_menu: {
392
+ enable: false,
393
+ commentBarrage: false,
394
+ translate: {
395
+ enable: false,
396
+ defaultEncoding: 2,
397
+ translateDelay: 0,
398
+ },
399
+ custom_list: []
400
+ },
401
+ lure: {
402
+ enable: false,
403
+ jump: '404 Not Found',
404
+ back: 'ヾ(≧∇≦*)ゝ嘿嘿,上当了吧'
405
+ },
406
+ expire: {
407
+ enable: false,
408
+ time: 30,
409
+ position: 'top',
410
+ text_prev: '本文已于',
411
+ text_next: '天前过期,如果内容不符,请联系站长更新。',
412
+ },
413
+ background: {
414
+ enable: false,
415
+ dark: 'https://bu.dusays.com/2023/09/29/651685ce667d1.jpg',
416
+ light: 'https://bu.dusays.com/2023/09/29/651685cc18d39.jpg',
417
+ opacity: .2,
418
+ },
419
+ CDN: {
420
+ internal: 'local',
421
+ third_party: 'cdnjs',
422
+ version: true,
423
+ custom_format: 'https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}',
424
+ option: {
425
+ solitude_css: 'https://cdn2.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css',
426
+ }
426
427
  }
427
- hexo.theme.config = Object.assign(defaultConfig, hexo.theme.config)
428
+ }
429
+ hexo.theme.config = Object.assign(defaultConfig, hexo.theme.config)
428
430
  }, 1)