hexo-theme-stellar 1.26.7 → 1.27.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.
- package/_config.yml +134 -94
- package/_data/icons.yml +8 -1
- package/_data/widgets.yml +19 -7
- package/languages/en.yml +4 -2
- package/languages/zh-CN.yml +3 -1
- package/languages/zh-TW.yml +4 -2
- package/layout/404.ejs +1 -1
- package/layout/_partial/{plugins/comments → comments}/artalk/script.ejs +2 -2
- package/layout/_partial/{plugins/comments/utterances → comments/giscus}/layout.ejs +5 -2
- package/layout/_partial/{plugins/comments → comments}/giscus/script.ejs +1 -4
- package/layout/_partial/{plugins/comments → comments}/layout.ejs +1 -1
- package/layout/_partial/{plugins/comments → comments}/twikoo/script.ejs +1 -1
- package/layout/_partial/comments/waline/script.ejs +43 -0
- package/layout/_partial/head.ejs +0 -1
- package/layout/_partial/main/article/article_footer.ejs +1 -1
- package/layout/_partial/main/footer.ejs +1 -1
- package/layout/_partial/main/navbar/article_banner.ejs +81 -17
- package/layout/_partial/main/navbar/ghinfo.ejs +1 -1
- package/layout/_partial/main/post_list/post_card.ejs +1 -1
- package/layout/_partial/menubtn.ejs +6 -3
- package/layout/_partial/scripts/defines.ejs +31 -0
- package/layout/_partial/scripts/services.ejs +29 -0
- package/layout/_partial/scripts/sidebar.ejs +25 -0
- package/layout/_partial/scripts/utils.ejs +158 -0
- package/layout/_partial/scripts.ejs +32 -0
- package/layout/_partial/sidebar/{index.ejs → index_leftbar.ejs} +22 -20
- package/layout/_partial/sidebar/index_rightbar.ejs +84 -0
- package/layout/_partial/sidebar/logo.ejs +1 -1
- package/layout/_partial/widgets/author.ejs +37 -0
- package/layout/_partial/widgets/components/edit.ejs +24 -0
- package/layout/_partial/widgets/ghissues.ejs +1 -1
- package/layout/_partial/widgets/ghrepo.ejs +2 -2
- package/layout/_partial/widgets/ghuser.ejs +2 -2
- package/layout/_partial/widgets/markdown.ejs +1 -1
- package/layout/_partial/widgets/recent.ejs +1 -5
- package/layout/_partial/widgets/related.ejs +1 -1
- package/layout/_partial/widgets/timeline.ejs +1 -1
- package/layout/_partial/widgets/toc.ejs +32 -85
- package/layout/_partial/widgets/tree.ejs +71 -0
- package/layout/_plugins/copycode.ejs +13 -0
- package/layout/_plugins/fancybox.ejs +32 -0
- package/layout/_plugins/heti.ejs +21 -0
- package/layout/_plugins/index.ejs +24 -0
- package/layout/_plugins/lazyload.ejs +21 -0
- package/layout/{_partial/plugins/parser/mathjax/script.ejs → _plugins/mathjax.ejs} +1 -1
- package/layout/_plugins/mermaid.ejs +29 -0
- package/layout/_plugins/preload.ejs +9 -0
- package/layout/_plugins/scrollreveal.ejs +15 -0
- package/layout/_plugins/search/local_search.ejs +8 -0
- package/layout/_plugins/swiper.ejs +26 -0
- package/layout/_plugins/tianli_gpt.ejs +11 -0
- package/layout/archive.ejs +9 -2
- package/layout/layout.ejs +9 -6
- package/layout/page.ejs +2 -10
- package/package.json +1 -1
- package/scripts/events/lib/doc_tree.js +8 -8
- package/scripts/events/lib/topic_tree.js +3 -0
- package/scripts/generators/author.js +1 -1
- package/scripts/helpers/parse_config.js +6 -5
- package/scripts/tags/lib/albums.js +2 -2
- package/scripts/tags/lib/button.js +1 -1
- package/scripts/tags/lib/emoji.js +1 -1
- package/scripts/tags/lib/friends.js +1 -1
- package/scripts/tags/lib/icon.js +10 -5
- package/scripts/tags/lib/link.js +2 -2
- package/scripts/tags/lib/md.js +1 -1
- package/scripts/tags/lib/posters.js +2 -2
- package/scripts/tags/lib/sites.js +1 -1
- package/scripts/tags/lib/timeline.js +2 -2
- package/source/css/_common/button.styl +8 -2
- package/source/css/_common/device.styl +39 -12
- package/source/css/_custom.styl +15 -16
- package/source/css/_defines/const.styl +1 -1
- package/source/css/_defines/func.styl +14 -4
- package/source/css/_defines/theme.styl +38 -27
- package/source/css/_layout/layout.styl +61 -26
- package/source/css/_layout/list.styl +1 -1
- package/source/css/_layout/main.styl +1 -4
- package/source/css/_layout/md.styl +16 -2
- package/source/css/_layout/pages/archives.styl +4 -0
- package/source/css/_layout/partial/article-banner.styl +14 -15
- package/source/css/_layout/partial/article-footer.styl +0 -5
- package/source/css/_layout/partial/footer.styl +8 -6
- package/source/css/_layout/partial/related.styl +4 -0
- package/source/css/_layout/sidebar/footer.styl +3 -1
- package/source/css/_layout/sidebar/logo.styl +3 -1
- package/source/css/_layout/sidebar/nav-area.styl +1 -1
- package/source/css/_layout/sidebar/sidebar.styl +23 -16
- package/source/css/_layout/tag-plugins/banner.styl +1 -8
- package/source/css/_layout/tag-plugins/common.styl +10 -5
- package/source/css/_layout/tag-plugins/icon.styl +6 -0
- package/source/css/_layout/tag-plugins/image.styl +1 -1
- package/source/css/_layout/tag-plugins/quot.styl +1 -1
- package/source/css/_layout/tag-plugins/timeline.styl +26 -27
- package/source/css/_layout/widgets/ghrepo.styl +1 -1
- package/source/css/_layout/widgets/ghuser.styl +9 -5
- package/source/css/_layout/widgets/list.styl +4 -2
- package/source/css/_layout/widgets/related.styl +0 -1
- package/source/css/_layout/widgets/timeline.styl +27 -21
- package/source/css/_layout/widgets/toc.styl +182 -0
- package/source/css/_layout/widgets/tree.styl +0 -0
- package/source/css/_layout/widgets/widgets.styl +26 -7
- package/source/css/_plugins/comments/twikoo.styl +6 -6
- package/source/css/_plugins/comments/waline.styl +13 -10
- package/source/css/_plugins/index.styl +2 -0
- package/source/css/_plugins/katex.styl +5 -0
- package/source/css/_plugins/mermaid.styl +49 -59
- package/source/css/_plugins/tianli_gpt.styl +208 -151
- package/source/js/main.js +48 -251
- package/source/js/plugins/copycode.js +24 -28
- package/source/js/search/local-search.js +32 -0
- package/source/js/services/fcircle.js +36 -0
- package/source/js/services/friends.js +27 -0
- package/source/js/services/ghinfo.js +33 -0
- package/source/js/services/mdrender.js +10 -0
- package/source/js/services/memos.js +73 -0
- package/source/js/services/siteinfo.js +38 -0
- package/source/js/services/sites.js +30 -0
- package/source/js/services/timeline.js +106 -0
- package/source/js/services/weibo.js +60 -0
- package/layout/_partial/main/navbar/article_top_area.ejs +0 -35
- package/layout/_partial/main/navbar/author_banner.ejs +0 -29
- package/layout/_partial/plugins/ai/tianli_gpt.ejs +0 -9
- package/layout/_partial/plugins/comments/waline/script.ejs +0 -39
- package/layout/_partial/plugins/parser/head.ejs +0 -3
- package/layout/_partial/plugins/parser/katex/head.ejs +0 -3
- package/layout/_partial/plugins/parser/katex/script.ejs +0 -4
- package/layout/_partial/plugins/parser/mermaid/script.ejs +0 -29
- package/layout/_partial/plugins/parser/script.ejs +0 -9
- package/layout/_partial/scripts/index.ejs +0 -176
- package/source/css/_layout/widgets/toc_blog.styl +0 -3
- package/source/css/_layout/widgets/toc_common.styl +0 -92
- package/source/css/_layout/widgets/toc_wiki.styl +0 -62
- package/source/js/plugins/fcircle.js +0 -92
- package/source/js/plugins/friends.js +0 -84
- package/source/js/plugins/ghinfo.js +0 -85
- package/source/js/plugins/linkcard.js +0 -48
- package/source/js/plugins/marked.js +0 -50
- package/source/js/plugins/memos.js +0 -132
- package/source/js/plugins/sites.js +0 -87
- package/source/js/plugins/timeline.js +0 -162
- package/source/js/plugins/weibo.js +0 -116
- /package/layout/_partial/{plugins/comments → comments}/artalk/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/beaudar/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/beaudar/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/twikoo/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments/giscus → comments/utterances}/layout.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/utterances/script.ejs +0 -0
- /package/layout/_partial/{plugins/comments → comments}/waline/layout.ejs +0 -0
|
@@ -1,153 +1,210 @@
|
|
|
1
|
-
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
--
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
background
|
|
47
|
-
|
|
48
|
-
border
|
|
49
|
-
|
|
50
|
-
line-height
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
display
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
1
|
+
:root
|
|
2
|
+
--ai-font-color var(--text-p2)
|
|
3
|
+
--ai-post-bg var(--block)
|
|
4
|
+
--ai-content-bg var(--site-bg)
|
|
5
|
+
--ai-content-border 1px solid var(--block-border)
|
|
6
|
+
--ai-border 1px solid var(--block-border)
|
|
7
|
+
--ai-tag-bg var(--card)
|
|
8
|
+
--ai-cursor var(--text-p1)
|
|
9
|
+
--ai-btn-bg var(--card)
|
|
10
|
+
--ai-title-color var(--text-p1)
|
|
11
|
+
--ai-btn-color var(--text-p2)
|
|
12
|
+
--ai-speech-content #fff
|
|
13
|
+
|
|
14
|
+
#post-ai.post-ai
|
|
15
|
+
background var(--ai-post-bg)
|
|
16
|
+
border-radius $border-card
|
|
17
|
+
padding 10px 12px 11px
|
|
18
|
+
line-height 1.3
|
|
19
|
+
border var(--ai-border)
|
|
20
|
+
margin-top 10px
|
|
21
|
+
margin-bottom 6px
|
|
22
|
+
transition all 0.3s
|
|
23
|
+
-webkit-transition all 0.3s
|
|
24
|
+
-moz-transition all 0.3s
|
|
25
|
+
-ms-transition all 0.3s
|
|
26
|
+
-o-transition all 0.3s
|
|
27
|
+
|
|
28
|
+
#post-ai .ai-title
|
|
29
|
+
display flex
|
|
30
|
+
color var(--ai-title-color)
|
|
31
|
+
border-radius 8px
|
|
32
|
+
align-items center
|
|
33
|
+
padding 0 6px
|
|
34
|
+
position relative
|
|
35
|
+
|
|
36
|
+
#post-ai .ai-title i
|
|
37
|
+
font-weight 800
|
|
38
|
+
|
|
39
|
+
#post-ai .ai-title-text
|
|
40
|
+
font-weight bold
|
|
41
|
+
margin-left 8px
|
|
42
|
+
font-size 17px
|
|
43
|
+
|
|
44
|
+
#post-ai .ai-tag
|
|
45
|
+
font-size 12px
|
|
46
|
+
background-color var(--ai-tag-bg)
|
|
47
|
+
color var(--ai-btn-color)
|
|
48
|
+
border-radius 4px
|
|
49
|
+
margin-left auto
|
|
50
|
+
line-height 1
|
|
51
|
+
padding 4px 5px
|
|
52
|
+
border var(--ai-border)
|
|
53
|
+
|
|
54
|
+
#post-ai .ai-explanation
|
|
55
|
+
margin-top 10px
|
|
56
|
+
padding 8px 12px
|
|
57
|
+
background var(--ai-content-bg)
|
|
58
|
+
border-radius $border-card
|
|
59
|
+
border var(--ai-content-border)
|
|
60
|
+
font-size 15.5px
|
|
61
|
+
line-height 1.4
|
|
62
|
+
color var(--ai-font-color)
|
|
63
|
+
|
|
64
|
+
#post-ai .ai-cursor
|
|
65
|
+
display inline-block
|
|
66
|
+
border-radius 50%
|
|
67
|
+
background var(--ai-cursor)
|
|
68
|
+
width: 12px
|
|
69
|
+
height: 12px
|
|
70
|
+
opacity 0.95
|
|
71
|
+
margin-left 3px
|
|
72
|
+
transition all 0.3s
|
|
73
|
+
-webkit-transition all 0.3s
|
|
74
|
+
-moz-transition all 0.3s
|
|
75
|
+
-ms-transition all 0.3s
|
|
76
|
+
-o-transition all 0.3s
|
|
77
|
+
|
|
78
|
+
#post-ai .ai-btn-box
|
|
79
|
+
font-size 15.5px
|
|
80
|
+
width 100%
|
|
81
|
+
display flex
|
|
82
|
+
flex-direction row
|
|
83
|
+
flex-wrap wrap
|
|
84
|
+
|
|
85
|
+
#post-ai .ai-btn-item
|
|
86
|
+
padding 5px 10px
|
|
87
|
+
margin 10px 16px 0px 5px
|
|
88
|
+
width fit-content
|
|
89
|
+
line-height 1
|
|
90
|
+
background var(--ai-btn-bg)
|
|
91
|
+
border var(--ai-border)
|
|
92
|
+
color var(--ai-btn-color)
|
|
93
|
+
border-radius 6px
|
|
94
|
+
user-select none
|
|
95
|
+
transition all 0.3s
|
|
96
|
+
-webkit-transition all 0.3s
|
|
97
|
+
-moz-transition all 0.3s
|
|
98
|
+
-ms-transition all 0.3s
|
|
99
|
+
-o-transition all 0.3s
|
|
100
|
+
cursor pointer
|
|
101
|
+
|
|
102
|
+
#post-ai .ai-btn-item:hover
|
|
103
|
+
background var(--theme-link)
|
|
104
|
+
|
|
105
|
+
#post-ai .ai-recommend
|
|
106
|
+
display flex
|
|
107
|
+
flex-direction row
|
|
108
|
+
flex-wrap wrap
|
|
109
|
+
|
|
110
|
+
#post-ai .ai-recommend-item
|
|
111
|
+
width 50%
|
|
112
|
+
margin-top 2px
|
|
113
|
+
|
|
114
|
+
#post-ai .ai-recommend-item a
|
|
115
|
+
border-bottom 2px solid var(--theme-link)
|
|
116
|
+
padding 0 .2em
|
|
117
|
+
color var(--theme-link)
|
|
118
|
+
font-weight 700
|
|
119
|
+
text-decoration none
|
|
120
|
+
transition all 0.3s
|
|
121
|
+
-webkit-transition all 0.3s
|
|
122
|
+
-moz-transition all 0.3s
|
|
123
|
+
-ms-transition all 0.3s
|
|
124
|
+
-o-transition all 0.3s
|
|
125
|
+
|
|
126
|
+
#post-ai .ai-recommend-item a:hover
|
|
127
|
+
background-color var(--theme-link)
|
|
128
|
+
border-bottom 2px solid var(--theme-link)
|
|
129
|
+
color #fff
|
|
130
|
+
border-radius 5px
|
|
131
|
+
|
|
132
|
+
@media screen and (max-width: 768px)
|
|
133
|
+
#post-ai .ai-btn-box
|
|
134
|
+
justify-content center
|
|
135
|
+
|
|
136
|
+
#post-ai .ai-title>svg
|
|
137
|
+
width 21px
|
|
138
|
+
height 21px
|
|
139
|
+
|
|
140
|
+
#post-ai .ai-title>svg path
|
|
141
|
+
fill var(--ai-font-color)
|
|
142
|
+
|
|
143
|
+
#post-ai .ai-Toggle
|
|
144
|
+
font-size 12px
|
|
145
|
+
border var(--ai-border)
|
|
146
|
+
background var(--ai-btn-bg)
|
|
147
|
+
color var(--ai-btn-color)
|
|
148
|
+
padding 3px 4px
|
|
149
|
+
border-radius 4px
|
|
150
|
+
margin-left 6px
|
|
151
|
+
cursor pointer
|
|
152
|
+
-webkit-transition .3s
|
|
153
|
+
-moz-transition .3s
|
|
154
|
+
-o-transition .3s
|
|
155
|
+
-ms-transition .3s
|
|
156
|
+
transition .3s
|
|
157
|
+
font-weight bolder
|
|
158
|
+
pointer-events none
|
|
159
|
+
opacity 0
|
|
160
|
+
|
|
161
|
+
#post-ai .ai-Toggle:hover
|
|
162
|
+
background $color-theme
|
|
163
|
+
|
|
164
|
+
#post-ai .ai-speech-box
|
|
165
|
+
width 21px
|
|
166
|
+
height 21px
|
|
167
|
+
background var(--ai-font-color)
|
|
168
|
+
margin-left 7px
|
|
169
|
+
border-radius 50%
|
|
170
|
+
display flex
|
|
171
|
+
flex-direction row
|
|
172
|
+
flex-wrap wrap
|
|
173
|
+
align-content center
|
|
174
|
+
justify-content center
|
|
175
|
+
pointer-events none
|
|
176
|
+
opacity 0
|
|
177
|
+
-webkit-transition .3s
|
|
178
|
+
-moz-transition .3s
|
|
179
|
+
-o-transition .3s
|
|
180
|
+
-ms-transition .3s
|
|
181
|
+
transition .3s
|
|
182
|
+
cursor pointer
|
|
183
|
+
|
|
184
|
+
#post-ai .ai-speech-content
|
|
185
|
+
width 8px
|
|
186
|
+
background var(--ai-speech-content)
|
|
187
|
+
height 8px
|
|
188
|
+
border-radius 50%
|
|
189
|
+
-webkit-transition .3s
|
|
190
|
+
-moz-transition .3s
|
|
191
|
+
-o-transition .3s
|
|
192
|
+
-ms-transition .3s
|
|
193
|
+
transition .3s
|
|
194
|
+
|
|
195
|
+
#post-ai .ai-speech-box:hover .ai-speech-content
|
|
196
|
+
background $color-theme
|
|
197
|
+
|
|
198
|
+
@keyframes ai_breathe
|
|
86
199
|
0%
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
200
|
+
transform scale(0.9)
|
|
201
|
+
-webkit-transform scale(0.9)
|
|
202
|
+
-moz-transform scale(0.9)
|
|
203
|
+
-ms-transform scale(0.9)
|
|
204
|
+
-o-transform scale(0.9)
|
|
92
205
|
50%
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
100%
|
|
99
|
-
opacity: 1
|
|
100
|
-
|
|
101
|
-
.tianliGPT-tag
|
|
102
|
-
font-size: 12px
|
|
103
|
-
background-color: var(--text-p2)
|
|
104
|
-
color: var(--card)
|
|
105
|
-
font-weight: bold
|
|
106
|
-
border-radius: 4px
|
|
107
|
-
margin-left: auto
|
|
108
|
-
line-height: 1
|
|
109
|
-
padding: 4px
|
|
110
|
-
display: flex
|
|
111
|
-
align-items: center
|
|
112
|
-
justify-content: center
|
|
113
|
-
cursor: pointer
|
|
114
|
-
transition: 0.3s
|
|
115
|
-
|
|
116
|
-
.tianliGPT-tag:hover
|
|
117
|
-
background: $color-theme
|
|
118
|
-
color: var(--card)
|
|
119
|
-
|
|
120
|
-
ins.adsbygoogle
|
|
121
|
-
margin: 16px 0
|
|
122
|
-
background: var(--card)
|
|
123
|
-
border-radius: 12px
|
|
124
|
-
overflow: hidden
|
|
125
|
-
border: var(--style-border-always)
|
|
126
|
-
|
|
127
|
-
#tianliGPT-Toggle
|
|
128
|
-
font-size: 12px
|
|
129
|
-
background: var(--theme-link)
|
|
130
|
-
color: var(--card)
|
|
131
|
-
padding: 4px
|
|
132
|
-
border-radius: 4px
|
|
133
|
-
margin-left: 6px
|
|
134
|
-
transform: scale(0.8)
|
|
135
|
-
cursor: pointer
|
|
136
|
-
transition: 0.3s
|
|
137
|
-
font-weight: bold
|
|
138
|
-
|
|
139
|
-
#tianliGPT-Toggle:hover
|
|
140
|
-
background: var(--block-hover)
|
|
141
|
-
color: var(--card)
|
|
142
|
-
|
|
143
|
-
.tianliGPT-title-icon
|
|
144
|
-
width: 20px
|
|
145
|
-
height: 20px
|
|
146
|
-
|
|
147
|
-
.tianliGPT-title-icon svg
|
|
148
|
-
width: 20px
|
|
149
|
-
height: 20px
|
|
150
|
-
fill: var(--text-p2)
|
|
151
|
-
|
|
152
|
-
.tianliGPT-title-icon svg path
|
|
153
|
-
fill: var(--text-p2)
|
|
206
|
+
transform scale(1)
|
|
207
|
+
-webkit-transform scale(1)
|
|
208
|
+
-moz-transform scale(1)
|
|
209
|
+
-ms-transform scale(1)
|
|
210
|
+
-o-transform scale(1)
|