hexo-theme-solitude 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_config.yml +1 -0
- package/layout/includes/head/config.pug +1 -1
- package/layout/includes/inject/head.pug +2 -0
- package/layout/includes/page/equipment.pug +1 -1
- package/layout/includes/page/moments.pug +1 -1
- package/layout/includes/page/says.pug +1 -1
- package/layout/includes/page/tlink.pug +1 -1
- package/layout/includes/widgets/home/categoryBar.pug +1 -1
- package/layout/includes/widgets/third-party/search/algolia-search.pug +2 -4
- package/layout/includes/widgets/third-party/search/local-search.pug +2 -4
- package/package.json +1 -1
- package/source/css/_page/about.styl +0 -109
- package/source/css/_page/equipment.styl +0 -7
- package/source/css/_page/index.styl +110 -1
- package/source/css/_page/moment.styl +0 -7
- package/source/css/_page/says.styl +0 -6
- package/source/css/_search/algolia-search.styl +56 -108
- package/source/css/_search/local-search.styl +131 -112
- package/source/js/extend/search/algolia-search.js +146 -122
- package/source/js/extend/search/local-search.js +137 -162
- package/source/js/utils.js +30 -1
package/_config.yml
CHANGED
@@ -486,6 +486,7 @@ cdn:
|
|
486
486
|
algoliajs: https://cdn.bootcdn.net/ajax/libs/algoliasearch/4.9.3/algoliasearch-lite.umd.min.js
|
487
487
|
pacejs: https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js
|
488
488
|
echartsjs: https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js
|
489
|
+
lunrjs: https://cdn.bootcdn.net/ajax/libs/lunr.js/2.3.9/lunr.min.js
|
489
490
|
body:
|
490
491
|
viewimagejs: /lib/view-image.min.js
|
491
492
|
waterfalljs: /lib/waterfall.min.js
|
@@ -26,6 +26,8 @@ if theme.thirdparty.search.enable
|
|
26
26
|
if theme.thirdparty.search.type === 'algolia'
|
27
27
|
script(src=url_for(cdn.instantsearch))
|
28
28
|
script(src=url_for(cdn.algoliajs))
|
29
|
+
else if theme.thirdparty.search.type === 'local'
|
30
|
+
script(src=url_for(cdn.lunrjs))
|
29
31
|
|
30
32
|
// aplayer
|
31
33
|
if theme.thirdparty.aplayer.enable
|
@@ -1,7 +1,7 @@
|
|
1
1
|
.category-bar-items#category-bar-items
|
2
2
|
.category-bar-item(class=is_home() ? 'select' : '', id="category-bar-home")
|
3
3
|
a(href="/") 首页
|
4
|
-
each item in site.
|
4
|
+
each item in site.categories.find({ parent: { $exists: false } }).data
|
5
5
|
.category-bar-item(class=select ? (select === item.name ? 'select' : '') : '', id=item.name)
|
6
6
|
a(href=url_for(item.path))= item.name
|
7
7
|
if site.categories.length > 10
|
@@ -5,12 +5,10 @@ div#algolia-search
|
|
5
5
|
div#algolia-search-input
|
6
6
|
div#search-results
|
7
7
|
div#algolia-hits
|
8
|
+
div#algolia-tips
|
8
9
|
div#algolia-pagination
|
9
10
|
div#algolia-stats
|
10
|
-
|
11
|
-
div#algolia-tips
|
12
|
-
i.scoicon.sco-algolia-fill
|
13
|
-
span.algolia-tips-text= "Algolia 提供搜索服务"
|
11
|
+
#algolia-poweredBy
|
14
12
|
span.search-close-button
|
15
13
|
i.scoicon.sco-close-fill
|
16
14
|
div#search-mask
|
@@ -4,12 +4,10 @@ div#local-search
|
|
4
4
|
span.search-dialog-title 搜索
|
5
5
|
button.search-close-button
|
6
6
|
i.scoicon.sco-close-fill
|
7
|
-
div#loading-database
|
8
|
-
i.scoicon.sco-loading-line
|
9
|
-
span 加载中
|
10
7
|
div.search-wrap
|
11
8
|
div.search-box
|
12
9
|
input.search-box-input(type="text", id="search-input", autocomplete="off", spellcheck="false", autocorrect="off", autocapitalize="off", placeholder=__('search.placeholder'))
|
13
|
-
div#loading-status
|
14
10
|
div#search-results
|
11
|
+
div#search-pagination
|
12
|
+
div#search-tips
|
15
13
|
div#search-mask
|
package/package.json
CHANGED
@@ -703,28 +703,6 @@
|
|
703
703
|
.author-content-item
|
704
704
|
animation slide-in .6s 0s backwards
|
705
705
|
|
706
|
-
.author-content-item
|
707
|
-
.content-bottom
|
708
|
-
margin-top auto
|
709
|
-
display flex
|
710
|
-
align-items center
|
711
|
-
justify-content space-between
|
712
|
-
|
713
|
-
.icon-group
|
714
|
-
display flex
|
715
|
-
|
716
|
-
i
|
717
|
-
display inline-block
|
718
|
-
width 22px
|
719
|
-
height 18px
|
720
|
-
margin-right .5rem
|
721
|
-
|
722
|
-
.icon-pos-sup
|
723
|
-
background url(https://bu.dusays.com/2023/03/12/640dc913ee26b.webp)
|
724
|
-
|
725
|
-
.icon-pos-mid
|
726
|
-
background url(https://bu.dusays.com/2023/03/12/640dc931a2cd4.webp)
|
727
|
-
|
728
706
|
.author-content-item
|
729
707
|
&.game-jl
|
730
708
|
width 39%
|
@@ -770,70 +748,6 @@
|
|
770
748
|
top 0
|
771
749
|
left 0
|
772
750
|
|
773
|
-
.card-content
|
774
|
-
position absolute
|
775
|
-
width 100%
|
776
|
-
height 100%
|
777
|
-
top 0
|
778
|
-
left 0
|
779
|
-
z-index 2
|
780
|
-
display flex
|
781
|
-
flex-direction column
|
782
|
-
padding 1rem 2rem
|
783
|
-
|
784
|
-
.author-content-item-title
|
785
|
-
margin-bottom .5rem
|
786
|
-
|
787
|
-
.banner-button-group
|
788
|
-
position absolute
|
789
|
-
bottom 1.5rem
|
790
|
-
right 2rem
|
791
|
-
|
792
|
-
.banner-button
|
793
|
-
height 40px
|
794
|
-
width 118px
|
795
|
-
border-radius 20px
|
796
|
-
justify-content center
|
797
|
-
background var(--sco-black-op)
|
798
|
-
color var(--sco-white)
|
799
|
-
display flex
|
800
|
-
align-items center
|
801
|
-
z-index 1
|
802
|
-
transition .3s
|
803
|
-
cursor pointer
|
804
|
-
backdrop-filter saturate(180%) blur(20px)
|
805
|
-
-webkit-backdrop-filter blur(20px)
|
806
|
-
transform translateZ(0)
|
807
|
-
|
808
|
-
&:hover
|
809
|
-
background var(--sco-main)
|
810
|
-
color var(--sco-white)
|
811
|
-
|
812
|
-
i
|
813
|
-
margin-right 8px
|
814
|
-
font-size 22px
|
815
|
-
|
816
|
-
@media screen and (max-width: 768px)
|
817
|
-
.author-content-item
|
818
|
-
.card-content
|
819
|
-
.banner-button-group
|
820
|
-
right 1rem
|
821
|
-
bottom 1rem
|
822
|
-
|
823
|
-
.banner-button-group
|
824
|
-
.banner-button
|
825
|
-
background 0 0 !important
|
826
|
-
color var(--sco-white)
|
827
|
-
padding 0
|
828
|
-
width fit-content
|
829
|
-
|
830
|
-
i
|
831
|
-
margin-right 0
|
832
|
-
font-size 1.5rem
|
833
|
-
|
834
|
-
.banner-button-text
|
835
|
-
display none
|
836
|
-
|
837
751
|
.author-content-item
|
838
752
|
&.single.like-movie
|
839
753
|
height 19rem
|
@@ -877,29 +791,6 @@ video.author-content-video
|
|
877
791
|
width 49%
|
878
792
|
justify-content space-between
|
879
793
|
|
880
|
-
.author-content-item
|
881
|
-
width 49%
|
882
|
-
border-radius 12px
|
883
|
-
background var(--sco-card-bg)
|
884
|
-
border var(--style-border-always)
|
885
|
-
box-shadow var(--sco-shadow-border)
|
886
|
-
position relative
|
887
|
-
padding 1rem 2rem
|
888
|
-
overflow hidden
|
889
|
-
|
890
|
-
&.single
|
891
|
-
width 100%
|
892
|
-
|
893
|
-
.author-content-item-title
|
894
|
-
font-size 36px
|
895
|
-
font-weight 700
|
896
|
-
line-height 1
|
897
|
-
|
898
|
-
.author-content-item-tips
|
899
|
-
opacity .8
|
900
|
-
font-size .6rem
|
901
|
-
margin-bottom .5rem
|
902
|
-
|
903
794
|
@media screen and (max-width: 768px)
|
904
795
|
.author-content-item
|
905
796
|
width 100% !important
|
@@ -19,4 +19,113 @@ if hexo-config('says.enable')
|
|
19
19
|
@import "tag.styl"
|
20
20
|
|
21
21
|
if hexo-config('about.enable')
|
22
|
-
@import "about.styl"
|
22
|
+
@import "about.styl"
|
23
|
+
|
24
|
+
.author-content.author-content-item.sharePage
|
25
|
+
height 19rem
|
26
|
+
background-size cover
|
27
|
+
color var(--sco-white)
|
28
|
+
overflow hidden
|
29
|
+
margin-top 0
|
30
|
+
|
31
|
+
.author-content-item
|
32
|
+
width 49%
|
33
|
+
border-radius 12px
|
34
|
+
background var(--sco-card-bg)
|
35
|
+
border var(--style-border-always)
|
36
|
+
box-shadow var(--sco-shadow-border)
|
37
|
+
position relative
|
38
|
+
padding 1rem 2rem
|
39
|
+
overflow hidden
|
40
|
+
|
41
|
+
&.single
|
42
|
+
width 100%
|
43
|
+
|
44
|
+
.author-content-item-title
|
45
|
+
font-size 36px
|
46
|
+
font-weight 700
|
47
|
+
line-height 1
|
48
|
+
|
49
|
+
.author-content-item-tips
|
50
|
+
opacity .8
|
51
|
+
font-size .6rem
|
52
|
+
margin-bottom .5rem
|
53
|
+
|
54
|
+
.content-bottom
|
55
|
+
margin-top auto
|
56
|
+
display flex
|
57
|
+
align-items center
|
58
|
+
justify-content space-between
|
59
|
+
|
60
|
+
.icon-group
|
61
|
+
display flex
|
62
|
+
|
63
|
+
i
|
64
|
+
display inline-block
|
65
|
+
width 22px
|
66
|
+
height 18px
|
67
|
+
margin-right .5rem
|
68
|
+
|
69
|
+
.card-content
|
70
|
+
position absolute
|
71
|
+
width 100%
|
72
|
+
height 100%
|
73
|
+
top 0
|
74
|
+
left 0
|
75
|
+
z-index 2
|
76
|
+
display flex
|
77
|
+
flex-direction column
|
78
|
+
padding 1rem 2rem
|
79
|
+
|
80
|
+
.author-content-item-title
|
81
|
+
margin-bottom .5rem
|
82
|
+
|
83
|
+
.banner-button-group
|
84
|
+
position absolute
|
85
|
+
bottom 1.5rem
|
86
|
+
right 2rem
|
87
|
+
|
88
|
+
.banner-button
|
89
|
+
height 40px
|
90
|
+
width 118px
|
91
|
+
border-radius 20px
|
92
|
+
justify-content center
|
93
|
+
background var(--sco-black-op)
|
94
|
+
color var(--sco-white)
|
95
|
+
display flex
|
96
|
+
align-items center
|
97
|
+
z-index 1
|
98
|
+
transition .3s
|
99
|
+
cursor pointer
|
100
|
+
backdrop-filter saturate(180%) blur(20px)
|
101
|
+
-webkit-backdrop-filter blur(20px)
|
102
|
+
transform translateZ(0)
|
103
|
+
|
104
|
+
&:hover
|
105
|
+
background var(--sco-main)
|
106
|
+
color var(--sco-white)
|
107
|
+
|
108
|
+
i
|
109
|
+
margin-right 8px
|
110
|
+
font-size 22px
|
111
|
+
|
112
|
+
@media screen and (max-width: 768px)
|
113
|
+
.author-content-item
|
114
|
+
.card-content
|
115
|
+
.banner-button-group
|
116
|
+
right 1rem
|
117
|
+
bottom 1rem
|
118
|
+
|
119
|
+
.banner-button-group
|
120
|
+
.banner-button
|
121
|
+
background 0 0 !important
|
122
|
+
color var(--sco-white)
|
123
|
+
padding 0
|
124
|
+
width fit-content
|
125
|
+
|
126
|
+
i
|
127
|
+
margin-right 0
|
128
|
+
font-size 1.5rem
|
129
|
+
|
130
|
+
.banner-button-text
|
131
|
+
display none
|
@@ -20,12 +20,6 @@ if hexo-config('says.home_mini')
|
|
20
20
|
font-size 16px
|
21
21
|
|
22
22
|
if hexo-config('says.enable')
|
23
|
-
.author-content.author-content-item.essayPage
|
24
|
-
height 19rem
|
25
|
-
color var(--sco-white)
|
26
|
-
overflow hidden
|
27
|
-
margin-top 0
|
28
|
-
|
29
23
|
#bber
|
30
24
|
margin-top 1rem
|
31
25
|
width 100%
|
@@ -11,28 +11,47 @@
|
|
11
11
|
background var(--sco-card-bg)
|
12
12
|
border var(--style-border)
|
13
13
|
transition 0.3s
|
14
|
-
border-radius
|
14
|
+
border-radius 8px
|
15
|
+
|
16
|
+
&:hover
|
17
|
+
border var(--style-border-hover)
|
18
|
+
box-shadow var(--sco-shadow-theme)
|
15
19
|
|
16
20
|
+maxWidth768()
|
17
|
-
top
|
18
|
-
left
|
19
|
-
margin
|
21
|
+
top 0
|
22
|
+
left 0
|
23
|
+
margin 0
|
20
24
|
width 100%
|
21
25
|
height 100%
|
22
26
|
|
23
27
|
.search-close-button
|
28
|
+
position absolute
|
29
|
+
top 0.8rem
|
30
|
+
right 1rem
|
31
|
+
color var(--sco-gray)
|
32
|
+
font-size 1.4em
|
33
|
+
line-height 1
|
34
|
+
cursor pointer
|
35
|
+
transition color .2s ease-in-out 0s
|
36
|
+
|
24
37
|
&:hover
|
25
38
|
color var(--sco-main)
|
26
39
|
|
27
|
-
|
40
|
+
#algolia-input-panel
|
41
|
+
margin-bottom 8px
|
42
|
+
|
43
|
+
.search-box, .ais-SearchBox
|
28
44
|
padding-top 8px
|
29
45
|
max-width 100%
|
46
|
+
position relative
|
47
|
+
width 100%
|
48
|
+
min-width 100%
|
30
49
|
|
31
|
-
input
|
50
|
+
input, .ais-SearchBox-input
|
32
51
|
height 100%
|
33
52
|
width 100%
|
34
53
|
padding 0.25rem 0.7rem
|
35
|
-
outline
|
54
|
+
outline 0
|
36
55
|
border var(--style-border)
|
37
56
|
border-radius 8px
|
38
57
|
background var(--sco-secondbg)
|
@@ -41,45 +60,10 @@
|
|
41
60
|
&:focus
|
42
61
|
border var(--style-border-hover)
|
43
62
|
|
44
|
-
.
|
45
|
-
|
46
|
-
|
47
|
-
right 1rem
|
48
|
-
color var(--sco-gray)
|
49
|
-
font-size 1.4em
|
50
|
-
line-height 1
|
51
|
-
cursor pointer
|
52
|
-
transition color .2s ease-in-out 0s
|
53
|
-
|
54
|
-
#search-mask
|
55
|
-
position fixed
|
56
|
-
inset 0px
|
57
|
-
z-index 1000
|
58
|
-
display none
|
59
|
-
background rgba(0, 0, 0, 0.6)
|
60
|
-
backdrop-filter blur(12px)
|
61
|
-
-webkit-backdrop-filter blur(12px)
|
62
|
-
transform translateZ(0)
|
63
|
-
background var(--sco-maskbgdeep)
|
64
|
-
|
65
|
-
.search-nav
|
66
|
-
display flex
|
67
|
-
align-items center
|
68
|
-
justify-content space-between
|
69
|
-
padding 0 0.2rem 0.7rem 0.2rem
|
70
|
-
|
71
|
-
.search-dialog-title
|
72
|
-
font-weight bold
|
73
|
-
color var(--sco-main)
|
74
|
-
font-size 1.4em
|
75
|
-
line-height 1
|
76
|
-
|
77
|
-
.search-box
|
78
|
-
input
|
79
|
-
&::placeholder
|
80
|
-
color var(--sco-gray)
|
63
|
+
.ais-Pagination
|
64
|
+
.ais-Pagination-item--disabled
|
65
|
+
visibility hidden
|
81
66
|
|
82
|
-
#algolia-search
|
83
67
|
#search-results
|
84
68
|
padding 8px
|
85
69
|
max-height calc(80vh - 130px)
|
@@ -117,29 +101,7 @@
|
|
117
101
|
text-align center
|
118
102
|
font-weight 600
|
119
103
|
|
120
|
-
.
|
121
|
-
color var(--sco-gray)
|
122
|
-
font-size .8rem
|
123
|
-
font-weight bold
|
124
|
-
|
125
|
-
.ais-SearchBox
|
126
|
-
padding-top: 8px
|
127
|
-
margin 0 auto
|
128
|
-
width 100%
|
129
|
-
min-width 100%
|
130
|
-
position relative
|
131
|
-
|
132
|
-
.ais-SearchBox-input
|
133
|
-
border-radius 8px
|
134
|
-
border var(--style-border)
|
135
|
-
padding 0.25rem 0.7rem
|
136
|
-
outline 0
|
137
|
-
background var(--sco-secondbg)
|
138
|
-
color var(--search-input-color)
|
139
|
-
width 100%
|
140
|
-
height 100%
|
141
|
-
|
142
|
-
.ais-Pagination-list.pagination
|
104
|
+
.ais-Pagination-list
|
143
105
|
margin 0.2rem 0 0
|
144
106
|
padding 0
|
145
107
|
text-align center
|
@@ -159,48 +121,34 @@
|
|
159
121
|
text-align center
|
160
122
|
line-height 1.2rem
|
161
123
|
|
162
|
-
search-
|
163
|
-
|
164
|
-
|
165
|
-
font-size
|
124
|
+
.search-dialog__title
|
125
|
+
padding 0 0 0.7rem
|
126
|
+
color var(--sco-main)
|
127
|
+
font-size 1.4em
|
128
|
+
line-height 1
|
129
|
+
|
130
|
+
#algolia-tips
|
131
|
+
padding-top 12px
|
132
|
+
color var(--sco-secondtext)
|
133
|
+
right 0
|
134
|
+
margin auto
|
135
|
+
|
136
|
+
#algolia-stats
|
137
|
+
margin-bottom 10px
|
138
|
+
color var(--sco-gray)
|
139
|
+
font-size .8rem
|
140
|
+
font-weight bold
|
141
|
+
|
142
|
+
#algolia-search-results
|
143
|
+
padding-top 8px
|
166
144
|
|
167
145
|
#search-mask
|
146
|
+
position fixed
|
147
|
+
inset 0
|
148
|
+
z-index 1000
|
149
|
+
display none
|
150
|
+
background rgba(0, 0, 0, 0.6)
|
168
151
|
backdrop-filter blur(12px)
|
169
152
|
-webkit-backdrop-filter blur(12px)
|
170
153
|
transform translateZ(0)
|
171
|
-
background var(--sco-maskbgdeep)
|
172
|
-
|
173
|
-
#algolia-input-panel
|
174
|
-
margin-bottom 8px
|
175
|
-
|
176
|
-
.search-dialog
|
177
|
-
border-radius 12px !important
|
178
|
-
box-shadow var(--sco-shadow-lightblack)
|
179
|
-
background var(--sco-card-bg)
|
180
|
-
border var(--style-border)
|
181
|
-
transition .3s
|
182
|
-
|
183
|
-
&:hover
|
184
|
-
border var(--style-border-hover)
|
185
|
-
box-shadow var(--sco-shadow-theme)
|
186
|
-
|
187
|
-
.search-dialog__title
|
188
|
-
padding 0 0 0.7rem
|
189
|
-
color var(--sco-main)
|
190
|
-
font-size 1.4em
|
191
|
-
line-height 1
|
192
|
-
|
193
|
-
#algolia-tips
|
194
|
-
padding-top 12px
|
195
|
-
color var(--sco-secondtext)
|
196
|
-
right 0
|
197
|
-
margin auto
|
198
|
-
|
199
|
-
i
|
200
|
-
font-size 22px
|
201
|
-
|
202
|
-
.algolia-tips-text
|
203
|
-
margin-left .4rem
|
204
|
-
|
205
|
-
#algolia-search-results
|
206
|
-
padding-top 8px
|
154
|
+
background var(--sco-maskbgdeep)
|