hexo-theme-solitude 1.10.5 → 1.11.0

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 (60) hide show
  1. package/README.md +1 -1
  2. package/_config.yml +16 -0
  3. package/languages/default.yml +3 -0
  4. package/languages/en.yml +3 -0
  5. package/languages/zh-CN.yml +3 -0
  6. package/languages/zh-TW.yml +3 -0
  7. package/layout/includes/console.pug +5 -1
  8. package/layout/includes/inject/head.pug +1 -1
  9. package/layout/includes/page/recentcomment.pug +16 -0
  10. package/layout/includes/widgets/home/hometop.pug +0 -1
  11. package/layout/includes/widgets/home/topGroup.pug +9 -8
  12. package/layout/includes/widgets/page/banner.pug +2 -2
  13. package/layout/includes/widgets/page/message/artalk.pug +45 -0
  14. package/layout/includes/widgets/page/message/js.pug +5 -1
  15. package/layout/includes/widgets/page/message/twikoo.pug +19 -16
  16. package/layout/includes/widgets/page/message/valine.pug +12 -3
  17. package/layout/includes/widgets/page/message/waline.pug +42 -0
  18. package/layout/includes/widgets/page/recentcomment/artalk.pug +78 -0
  19. package/layout/includes/widgets/page/recentcomment/twikoo.pug +83 -0
  20. package/layout/includes/widgets/page/recentcomment/valine.pug +79 -0
  21. package/layout/includes/widgets/page/recentcomment/waline.pug +72 -0
  22. package/layout/includes/widgets/third-party/comments/artalk.pug +1 -1
  23. package/layout/includes/widgets/third-party/news-comment/artalk.pug +1 -1
  24. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +1 -1
  25. package/layout/includes/widgets/third-party/news-comment/valine.pug +19 -17
  26. package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
  27. package/layout/page.pug +2 -0
  28. package/package.json +1 -1
  29. package/plugins.yml +3 -3
  30. package/scripts/event/merge_config.js +7 -0
  31. package/source/css/_comments/comment.styl +1 -1
  32. package/source/css/_comments/valine.styl +1 -0
  33. package/source/css/_global/index.styl +27 -23
  34. package/source/css/_layout/article-container.styl +1 -1
  35. package/source/css/_layout/aside.styl +1 -0
  36. package/source/css/_layout/console.styl +13 -0
  37. package/source/css/_layout/footer.styl +1 -1
  38. package/source/css/_layout/header.styl +0 -27
  39. package/source/css/_layout/rightmenu.styl +1 -1
  40. package/source/css/_page/_about/about.styl +2 -1
  41. package/source/css/_page/_about/buff.styl +1 -1
  42. package/source/css/_page/_about/contentinfo.styl +2 -2
  43. package/source/css/_page/_about/maxim.styl +1 -1
  44. package/source/css/_page/_about/myphoto.styl +1 -1
  45. package/source/css/_page/_about/oneself.styl +2 -2
  46. package/source/css/_page/_about/personalities.styl +1 -1
  47. package/source/css/_page/_about/skills.styl +1 -1
  48. package/source/css/_page/_about/statistic.styl +1 -1
  49. package/source/css/_page/_home/home-top.styl +17 -96
  50. package/source/css/_page/_home/home.styl +1 -1
  51. package/source/css/_page/index.styl +3 -0
  52. package/source/css/_page/links.styl +0 -3
  53. package/source/css/_page/other.styl +127 -115
  54. package/source/css/_page/recentcomment.styl +85 -0
  55. package/source/css/_page/says.styl +5 -14
  56. package/source/css/_tags/gallery.styl +5 -3
  57. package/source/js/main.js +2 -22
  58. package/source/js/search/algolia.js +11 -0
  59. package/source/js/search/local.js +11 -0
  60. package/layout/includes/widgets/home/categoryGroup.pug +0 -12
@@ -2,7 +2,6 @@
2
2
  .recent-top-post-group
3
3
  border-radius 12px
4
4
  overflow hidden
5
- overflow-x auto
6
5
  width 100%
7
6
  margin-bottom 0
8
7
  user-select none
@@ -15,15 +14,24 @@
15
14
  flex-direction row
16
15
  flex-wrap nowrap
17
16
  width 100%
18
- overflow-x scroll
19
17
  gap .5rem
20
18
 
21
19
  +maxWidth1200()
22
- gap 0
20
+ flex-direction column
23
21
 
24
22
  &::-webkit-scrollbar
25
23
  display none
26
24
 
25
+ .recent-post-group
26
+ display flex
27
+ flex-direction row
28
+ flex-wrap wrap
29
+ align-content space-between
30
+ gap .5rem
31
+
32
+ +maxWidth1200()
33
+ flex-wrap nowrap
34
+
27
35
  / #bannerGroup
28
36
  display flex
29
37
  +minWidth1201()
@@ -47,94 +55,17 @@
47
55
  .tags-group-icon:nth-child(even)
48
56
  margin-left 4rem
49
57
 
50
- .categoryGroup
51
- display flex
52
- flex-direction column
53
- justify-content space-between
54
- min-width 200px
55
- +minWidth1201()
56
- display none
57
- +maxWidth768()
58
- min-width 130px
59
- margin-left 1rem
60
- max-height 164px
61
- overflow hidden
62
- position relative
63
-
64
- .categoryItem
65
- overflow hidden
66
- transform scale(1)
67
- transition all .8s cubic-bezier(.65, .15, .37, 1.19)
68
- height 48%
69
- border-radius 12px
70
- +maxWidth768()
71
- border-radius 0
72
- height 47%
73
- box-shadow none
74
-
75
- a.categoryButton
76
- height 100%
77
- width 100%
78
- background var(--efu-card-bg)
79
- background-size 200%
80
- border-radius 12px
81
- display inline-block
82
- text-align left
83
- line-height 4em
84
- font-weight 700
85
- font-size .9rem
86
- color var(--efu-white)
87
- transition all .8s cubic-bezier(.39, .575, .565, 1)
88
- transform scale(1)
89
- overflow hidden
90
- +maxWidth768()
91
- border-radius 8px
92
-
93
- &:after
94
- top 50px
95
- width 1rem
96
- left 21px
97
- height 2px
98
- background var(--efu-white)
99
- content ""
100
- border-radius 1px
101
- position absolute
102
-
103
- i
104
- font-size 5rem
105
- opacity .2
106
- position absolute
107
- right 0
108
- top 20%
109
- transition .3s
110
- width 100px
111
- text-align center
112
- filter blur(2px)
113
- transform scale(1) rotate(15deg)
114
-
115
- +maxWidth768()
116
- display none
117
-
118
- &:hover
119
- i
120
- opacity .8
121
- transition .8s
122
- transition-delay .15s
123
- transform scale(1.03) rotate(0)
124
- font-size 2.5rem
125
- filter blur(0)
126
-
127
- .categoryButtonText
128
- padding-left 21px
129
-
130
58
  /.topGroup
131
- display: flex
59
+ display flex
60
+ gap .5rem
61
+ +maxWidth1200()
62
+ overflow-x auto
132
63
 
133
64
  +minWidth1201()
134
65
  display flex
135
66
  flex-direction row
136
67
  flex-wrap wrap
137
- justify-content space-between
68
+ justify-content flex-start
138
69
  height calc(328px + 0.5rem)
139
70
  align-content space-between
140
71
  width calc(50% - 0.25rem)
@@ -144,7 +75,7 @@
144
75
  .recent-post-item
145
76
  display flex
146
77
  flex-direction column
147
- width calc(100% / 3 - 0.25rem)
78
+ width calc(100% / 3 - 0.5rem)
148
79
  align-items flex-start
149
80
  background var(--efu-card-bg)
150
81
  border-radius 12px
@@ -159,10 +90,6 @@
159
90
  +maxWidth1200()
160
91
  width 200px
161
92
  min-width 200px
162
- margin-left .5rem
163
-
164
- &:last-child
165
- margin-right 1rem
166
93
 
167
94
  &:hover .post_cover a .recent-post-top-text
168
95
  left 0
@@ -214,7 +141,6 @@
214
141
  &:hover
215
142
  color var(--efu-fontcolor)
216
143
 
217
-
218
144
  .todayCard
219
145
  display none
220
146
 
@@ -227,7 +153,6 @@
227
153
  right 0
228
154
  background var(--efu-card-bg)
229
155
  border-radius 12px
230
- margin-left 0.5rem
231
156
  overflow hidden
232
157
  transition .3s
233
158
  display flex
@@ -315,10 +240,6 @@
315
240
 
316
241
  .banner-button-group
317
242
  bottom: 1rem
318
-
319
- +maxWidth768()
320
- margin-right 1rem
321
-
322
243
  .banners-links
323
244
  display flex
324
245
  position absolute
@@ -5,7 +5,7 @@ if hexo-config('hometop.enable') || hexo-config('says.enable')
5
5
  padding .5rem 1.5rem
6
6
 
7
7
  +maxWidth768()
8
- padding 0
8
+ padding 0 1rem
9
9
  margin-top 0
10
10
 
11
11
  if hexo-config('hometop.enable')
@@ -6,6 +6,9 @@
6
6
 
7
7
  @import "error.styl"
8
8
 
9
+ if hexo-config('recent_comments.enable')
10
+ @import "recentcomment.styl"
11
+
9
12
  if hexo-config('says.enable')
10
13
  @import "says.styl"
11
14
 
@@ -69,9 +69,6 @@
69
69
  +maxWidth768()
70
70
  width calc(33.3333% - 16px)
71
71
 
72
- +maxWidth600()
73
- width calc(50% - 16px)
74
-
75
72
  .img
76
73
  border-radius 0
77
74
  height 120px
@@ -1,137 +1,155 @@
1
1
  div#banners
2
- display none
3
- +minWidth1201()
2
+ display flex
3
+ width 100%
4
+ background var(--efu-card-bg)
5
+ border var(--style-border-always)
6
+ border-radius 12px
7
+ overflow hidden
8
+ position relative
9
+ box-shadow var(--efu-shadow-border)
10
+ flex-direction column
11
+ transition .3s
12
+ will-change transform
13
+ animation slide-in .6s .1s backwards
14
+
15
+ #home_top &
16
+ +maxWidth1200()
17
+ height calc(328px + .5rem)
18
+
19
+ :not(.flink)&:hover
20
+ box-shadow var(--efu-shadow-main)
21
+
22
+ .banner-button-group
23
+ position absolute
24
+ right 2rem
25
+ top 2rem
4
26
  display flex
5
- width 100%
6
- background var(--efu-card-bg)
7
- border var(--style-border)
27
+
28
+ +maxWidth768()
29
+ display none
30
+
31
+ .banner-button
32
+ padding 8px 12px
33
+ background var(--efu-fontcolor)
8
34
  border-radius 12px
9
- overflow hidden
10
- position relative
11
- box-shadow var(--efu-shadow-border)
12
- flex-direction column
35
+ color var(--efu-card-bg)
36
+ display flex
37
+ align-items center
38
+ z-index 1
13
39
  transition .3s
14
- will-change transform
15
- animation slide-in .6s .1s backwards
40
+ cursor pointer
41
+ box-shadow var(--efu-shadow-black)
42
+
43
+ &.secondary
44
+ background var(--efu-secondbg)
45
+ border var(--style-border-always)
46
+ color var(--efu-lighttext)
47
+ margin-right 1rem
48
+ box-shadow var(--efu-shadow-border)
49
+
50
+ &:hover
51
+ background var(--efu-theme)
52
+ color var(--efu-white)
53
+
54
+ i
55
+ margin-right 8px
56
+ font-size 1rem
57
+
58
+ /.banners-title
59
+ top 2.6rem
60
+ left 2rem
61
+ position absolute
62
+ display flex
63
+ flex-direction column
16
64
 
17
- :not(.flink)&:hover
18
- box-shadow var(--efu-shadow-main)
65
+ &-big
66
+ font-size 36px
67
+ line-height 1
68
+ font-weight 700
69
+ margin-bottom 8px
70
+
71
+ &-small
72
+ font-size 12px
73
+ line-height 1
74
+ color var(--efu-secondtext)
75
+ margin-top 8px
76
+ margin-bottom 0.5rem
77
+ margin-left 2px
78
+
79
+ /.flink
80
+ .banners-title
81
+ top 1.5rem
82
+
83
+ .bannerText
84
+ font-size 4rem
85
+ line-height 4rem
86
+ font-weight 700
19
87
 
20
- .banner-button-group
21
- position absolute
22
- right 2rem
23
- top 2rem
24
- display flex
88
+ /.tags-group-all
89
+ display flex
25
90
 
26
- .banner-button
27
- padding 8px 12px
28
- background var(--efu-fontcolor)
29
- border-radius 12px
30
- color var(--efu-card-bg)
31
- display flex
32
- align-items center
33
- z-index 1
34
- transition .3s
35
- cursor pointer
36
- box-shadow var(--efu-shadow-black)
37
-
38
- &.secondary
39
- background var(--efu-secondbg)
40
- border var(--style-border-always)
41
- color var(--efu-lighttext)
42
- margin-right 1rem
43
- box-shadow var(--efu-shadow-border)
44
-
45
- &:hover
46
- background var(--efu-theme)
47
- color var(--efu-white)
91
+ #home_top &
92
+ +maxWidth600()
93
+ opacity 0.06
94
+ filter blur(8px)
48
95
 
49
- i
50
- margin-right 8px
51
- font-size 1rem
96
+ &.nowrapMove
97
+ padding-bottom 2rem
52
98
 
53
- /.banners-title
54
- top 2.6rem
55
- left 2rem
56
- position absolute
99
+ .tags-group-wrapper
100
+ margin-top: 7rem
101
+ animation: rowleft 120s linear infinite
57
102
  display flex
58
- flex-direction column
59
-
60
- &-big
61
- font-size 36px
62
- line-height 1
63
- font-weight 700
64
- margin-bottom 8px
65
-
66
- &-small
67
- font-size 12px
68
- line-height 1
69
- color var(--efu-secondtext)
70
- margin-top 8px
71
- margin-bottom 0.5rem
72
- margin-left 2px
73
-
74
- /.flink
75
- .banners-title
76
- top 1.5rem
77
-
78
- .bannerText
79
- font-size 4rem
80
- line-height 4rem
81
- font-weight 700
82
-
83
- /.tags-group-all
84
- display flex
85
103
 
86
- &.nowrapMove
87
- padding-bottom 2rem
104
+ +maxWidth768()
105
+ margin-top 7.5rem
88
106
 
89
- .tags-group-wrapper
90
- margin-top: 7rem
91
- animation: rowleft 120s linear infinite
92
- display flex
107
+ .tags-group-icon
108
+ border-radius 50%
93
109
 
94
- .tags-group-icon
110
+ img
111
+ min-width 100%
112
+ min-height 100%
95
113
  border-radius 50%
114
+ object-fit cover
96
115
 
97
- img
98
- min-width 100%
99
- min-height 100%
100
- border-radius 50%
101
- object-fit cover
116
+ .tags-group-icon-pair
117
+ margin-left 1rem
118
+ user-select none
102
119
 
103
- .tags-group-icon-pair
104
- margin-left 1rem
105
- user-select none
120
+ a img
121
+ border-radius 50%
106
122
 
107
- a img
108
- border-radius 50%
123
+ /.tags-group-icon
124
+ width 120px
125
+ height 120px
126
+ border-radius 30px
127
+ display flex
128
+ align-items center
129
+ justify-content center
130
+ color #fff
131
+ font-size 66px
132
+ font-weight 700
133
+ box-shadow var(--efu-shadow-blackdeep)
109
134
 
110
- /.tags-group-icon
111
- width 120px
112
- height 120px
113
- border-radius 30px
114
- display flex
115
- align-items center
116
- justify-content center
117
- color #fff
118
- font-size 66px
119
- font-weight 700
120
- box-shadow var(--efu-shadow-blackdeep)
135
+ #page &
136
+ +maxWidth768()
137
+ width 50px
138
+ height 50px
121
139
 
122
- &:nth-child(even)
123
- margin-top 1rem
124
- transform translate(-60px)
140
+ &:nth-child(even)
141
+ margin-top 1rem
142
+ transform translate(-60px)
125
143
 
126
- img
127
- width 60%
144
+ img
145
+ width 60%
128
146
 
129
147
  .author-content
130
148
  display flex
131
149
  flex-wrap wrap
132
150
  justify-content space-between
133
151
  width 100%
134
- margin-top 1rem
152
+ gap .5rem
135
153
 
136
154
  +maxWidth768()
137
155
  margin-top 0
@@ -141,7 +159,6 @@ div#banners
141
159
  animation slide-in .6s 0s backwards
142
160
  +maxWidth768()
143
161
  width 100% !important
144
- margin-top 1rem
145
162
  padding 1rem
146
163
 
147
164
  .author-content.author-content-item.sharePage
@@ -152,7 +169,7 @@ div#banners
152
169
  margin-top 0
153
170
 
154
171
  .author-content-item
155
- width 49%
172
+ width 49.5%
156
173
  border-radius 12px
157
174
  background var(--efu-card-bg)
158
175
  border var(--style-border-always)
@@ -161,11 +178,6 @@ div#banners
161
178
  overflow hidden
162
179
  padding 1rem 2rem
163
180
 
164
- +maxWidth768()
165
- width 100%
166
- margin-top 1rem
167
- padding 1rem
168
-
169
181
  &.single
170
182
  width 100%
171
183
 
@@ -0,0 +1,85 @@
1
+ div#comments-page
2
+ display flex
3
+ flex-wrap wrap
4
+ gap 12px
5
+ min-height 100px
6
+ width 100%
7
+ margin-top .5rem
8
+
9
+ .comment-card
10
+ position relative
11
+ width calc(100% / 3 - 8px)
12
+ background var(--efu-card-bg)
13
+ border-radius 12px
14
+ border var(--style-border-always)
15
+ padding 14px
16
+ cursor pointer
17
+ transition .3s
18
+ overflow hidden
19
+ gap 8px
20
+ display flex
21
+ flex-direction column
22
+
23
+ +maxWidth900()
24
+ width calc(100% / 2 - 6px)
25
+
26
+ +maxWidth768()
27
+ width 100%
28
+
29
+ &:hover
30
+ border-color var(--style-border-hover-always)
31
+
32
+ .comment-info
33
+ display flex
34
+ align-items center
35
+ gap 8px
36
+ border-bottom var(--style-border-always)
37
+ padding-bottom 8px
38
+
39
+ div
40
+ display flex
41
+ flex-direction column
42
+ line-height 1.5
43
+
44
+ .comment-article, .comment-content
45
+ transition .3s
46
+ overflow hidden
47
+ text-overflow ellipsis
48
+ display -webkit-box
49
+ -webkit-box-orient vertical
50
+ -webkit-line-clamp 2
51
+ line-height 1.7
52
+ font-size 14px
53
+
54
+ .comment-title
55
+ font-size 12px
56
+ color var(--efu-secondtext)
57
+ margin-top auto
58
+ transition .3s
59
+ overflow hidden
60
+ text-overflow ellipsis
61
+ display -webkit-box
62
+ -webkit-box-orient vertical
63
+ -webkit-line-clamp 1
64
+ line-height 1
65
+ opacity .6
66
+ padding-top 8px
67
+
68
+ i
69
+ font-size 12px
70
+ line-height 12px
71
+
72
+ #comments-page .comment-info img
73
+ width 30px
74
+ height 30px
75
+ object-fit cover
76
+ border-radius 30px
77
+ margin 0
78
+
79
+ span.comment-user
80
+ font-weight 700
81
+
82
+ time.comment-time
83
+ font-size 12px
84
+ color var(--efu-secondtext)
85
+ margin-left auto
@@ -13,22 +13,13 @@ if hexo-config('says.home_mini')
13
13
  user-select none
14
14
  align-items center
15
15
  padding .5rem 1rem
16
+ animation slide-in .6s 0s backwards
17
+ margin-bottom .5rem
16
18
 
17
19
  &.more-page
18
20
  margin-bottom 0
19
21
 
20
- if hexo-config('hometop.enable')
21
- margin-bottom 1rem
22
-
23
- +maxWidth1300()
24
- if hexo-config('hometop.enable')
25
- margin-bottom 1rem
26
- animation slide-in .6s 0s backwards
27
-
28
22
  +minWidth1300()
29
- if hexo-config('hometop.enable')
30
- margin-bottom .5rem
31
- animation slide-in .6s 0s backwards
32
23
  &:hover
33
24
  border var(--style-border-hover)
34
25
  box-shadow var(--efu-shadow-main)
@@ -273,7 +264,7 @@ if hexo-config('says.enable')
273
264
  li
274
265
  &.item
275
266
  position relative
276
- width 33%
267
+ width calc(33% - .06rem)
277
268
  border var(--style-border-always)
278
269
  border-radius 12px
279
270
  padding 1rem 1rem .5rem
@@ -285,10 +276,11 @@ if hexo-config('says.enable')
285
276
  align-items flex-start
286
277
  background var(--efu-card-bg)
287
278
  margin-right .5rem
279
+ margin-bottom .5rem
288
280
  box-shadow var(--efu-shadow-border)
289
281
 
290
282
  +maxWidth1300()
291
- width 49%
283
+ width 49.5%
292
284
  margin-right 1%
293
285
 
294
286
  +maxWidth768()
@@ -311,7 +303,6 @@ if hexo-config('says.enable')
311
303
  display flex
312
304
  flex-direction row
313
305
  flex-wrap wrap
314
- justify-content space-between
315
306
 
316
307
  li
317
308
  &.item
@@ -3,7 +3,7 @@
3
3
  position: relative
4
4
  float: left
5
5
  overflow: hidden
6
- margin: 6px 4px
6
+ margin: 0
7
7
  width: calc(50% - 8px)
8
8
  height: 250px
9
9
  border-radius: 8px
@@ -92,8 +92,10 @@
92
92
  transform: translate3d(-100%, 0, 0)
93
93
 
94
94
  .gallery-group-main
95
- overflow: auto
96
- padding: 0 0 16px
95
+ overflow auto
96
+ display flex
97
+ gap .5rem
98
+ margin-top .5rem
97
99
 
98
100
  .gallery-item
99
101
  min-height 5rem
package/source/js/main.js CHANGED
@@ -163,7 +163,7 @@ let is_rm = typeof rm !== 'undefined'
163
163
  /**
164
164
  * sco
165
165
  * @description solitude 主题的一些方法
166
- * @type {{showConsole: (function(): boolean), setTimeState: sco.setTimeState, toTop: (function(): void), changeTimeFormat(*): void, hideCookie: sco.hideCookie, owoBig(*): void, switchDarkMode: sco.switchDarkMode, openAllTags: sco.openAllTags, switchHideAside: sco.switchHideAside, addRuntime: sco.addRuntime, refreshWaterFall: sco.refreshWaterFall, categoriesBarActive: sco.categoriesBarActive, addNavBackgroundInit: sco.addNavBackgroundInit, toPage: sco.toPage, changeSayHelloText: sco.changeSayHelloText, initConsoleState: (function(): void), switchComments(): void, switchKeyboard: sco.switchKeyboard, initAdjust: sco.initAdjust, listenToPageInputPress: sco.listenToPageInputPress, scrollTo: sco.scrollTo, musicToggle: sco.musicToggle, toTalk: sco.toTalk, switchCommentBarrage: sco.switchCommentBarrage, hideTodayCard: (function(): void), scrollCategoryBarToRight: sco.scrollCategoryBarToRight, scrollToComment: sco.scrollToComment, initbbtalk: sco.initbbtalk, tagPageActive: sco.tagPageActive, hideConsole: (function(): void), addPhotoFigcaption: sco.addPhotoFigcaption}}
166
+ * @type {{showConsole: (function(): boolean), setTimeState: sco.setTimeState, toTop: (function(): void), changeTimeFormat(*): void, hideCookie: sco.hideCookie, owoBig(*): void, switchDarkMode: sco.switchDarkMode, openAllTags: sco.openAllTags, switchHideAside: sco.switchHideAside, addRuntime: sco.addRuntime, refreshWaterFall: sco.refreshWaterFall, categoriesBarActive: sco.categoriesBarActive, addNavBackgroundInit: sco.addNavBackgroundInit, toPage: sco.toPage, changeSayHelloText: sco.changeSayHelloText, initConsoleState: (function(): void), switchComments(): void, switchKeyboard: sco.switchKeyboard, listenToPageInputPress: sco.listenToPageInputPress, scrollTo: sco.scrollTo, musicToggle: sco.musicToggle, toTalk: sco.toTalk, switchCommentBarrage: sco.switchCommentBarrage, hideTodayCard: (function(): void), scrollCategoryBarToRight: sco.scrollCategoryBarToRight, scrollToComment: sco.scrollToComment, initbbtalk: sco.initbbtalk, tagPageActive: sco.tagPageActive, hideConsole: (function(): void), addPhotoFigcaption: sco.addPhotoFigcaption}}
167
167
  */
168
168
  let sco = {
169
169
  /**
@@ -507,26 +507,6 @@ let sco = {
507
507
  const scrollTop = document.documentElement.scrollTop;
508
508
  (scrollTop !== 0) && document.getElementById("page-header").classList.add("nav-fixed", "nav-visible");
509
509
  },
510
- /**
511
- * initAdjust
512
- * @description 初始化调整
513
- */
514
- initAdjust: function () {
515
- const $blogName = document.getElementById('site-name');
516
- const $menusEle = document.querySelector('#menus .menus_items');
517
- const $searchEle = document.querySelector('#search-button');
518
- const $nav = document.getElementById('nav');
519
- const blogNameWidth = $blogName && $blogName.offsetWidth;
520
- const menusWidth = $menusEle && $menusEle.offsetWidth;
521
- const searchWidth = $searchEle && $searchEle.offsetWidth;
522
- const shouldHideMenu = window.innerWidth < 768 || blogNameWidth + menusWidth + searchWidth > $nav?.offsetWidth - 120;
523
- if (shouldHideMenu) {
524
- $nav?.classList.add('hide-menu');
525
- } else {
526
- $nav?.classList.remove('hide-menu');
527
- }
528
- $nav?.classList.add('show');
529
- },
530
510
  /**
531
511
  * toPage
532
512
  * @description 跳转到指定页
@@ -822,7 +802,7 @@ window.refreshFn = () => {
822
802
  }
823
803
  // 页面加载完成后执行
824
804
  document.addEventListener('DOMContentLoaded', () => {
825
- [sco.initAdjust, addCopyright, sco.initConsoleState, window.refreshFn, asideStatus, () => window.onscroll = percent].forEach(fn => fn());
805
+ [addCopyright, sco.initConsoleState, window.refreshFn, asideStatus, () => window.onscroll = percent].forEach(fn => fn());
826
806
  });
827
807
  // 一些快捷键绑定
828
808
  window.onkeydown = e => {