hexo-theme-solitude 2.1.16 → 3.0.1
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/.github/workflows/npm-publish.yml +1 -1
- package/.github/workflows/release.yml +29 -0
- package/LICENSE +10 -18
- package/README.md +3 -1
- package/README_en-US.md +3 -1
- package/README_zh-Hant.md +3 -1
- package/_config.yml +28 -24
- package/languages/en.yml +0 -0
- package/languages/zh-CN.yml +0 -0
- package/languages/zh-TW.yml +0 -0
- package/layout/includes/footer.pug +10 -7
- package/layout/includes/head/config.pug +9 -9
- package/layout/includes/inject/body.pug +5 -5
- package/layout/includes/inject/head.pug +2 -2
- package/layout/includes/page/{says.pug → brevity.pug} +7 -7
- package/layout/includes/page/kit.pug +3 -0
- package/layout/includes/page/links.pug +5 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +18 -86
- package/layout/includes/widgets/home/banner.pug +8 -2
- package/layout/includes/widgets/home/bbTimeList.pug +4 -4
- package/layout/includes/widgets/page/about/contentinfo.pug +1 -1
- package/layout/includes/widgets/page/{equipment → kit}/content.pug +3 -2
- package/layout/includes/widgets/page/recentcomment/waline.pug +0 -1
- package/layout/index.pug +2 -2
- package/layout/page.pug +4 -6
- package/package.json +10 -10
- package/plugins.yml +1 -1
- package/scripts/event/cdn.js +45 -115
- package/scripts/event/merge_config.js +5 -7
- package/scripts/filter/checkThemeConfig.js +3 -3
- package/scripts/helper/stylus.js +1 -3
- package/source/css/_comments/twikoo.styl +1 -1
- package/source/css/{_layout → _components}/capsule.styl +47 -48
- package/source/css/_components/expire.styl +12 -0
- package/source/css/_components/index.styl +17 -0
- package/source/css/_components/keyboard.styl +59 -0
- package/source/css/_components/pace.styl +39 -0
- package/source/css/_components/rightside.styl +63 -0
- package/source/css/_components/universe.styl +17 -0
- package/source/css/_layout/aside.styl +162 -460
- package/source/css/_layout/footer.styl +7 -10
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_home/home.styl +1 -1
- package/source/css/_page/{says.styl → brevity.styl} +54 -53
- package/source/css/_page/error.styl +1 -1
- package/source/css/_page/index.styl +5 -8
- package/source/css/index.styl +4 -1
- package/source/css/var.styl +2 -0
- package/source/js/main.js +21 -7
- package/source/js/third_party/waterfall.min.js +1 -1
- package/.github/workflows/code-review-bot.yml +0 -28
- package/.github/workflows/issue_close_question.yml +0 -25
- package/layout/includes/page/equipment.pug +0 -2
- package/layout/includes/page/tlink.pug +0 -13
- package/scripts/tags/article.js +0 -56
- package/source/css/_layout/expire.styl +0 -13
- package/source/css/_layout/keyboard.styl +0 -60
- package/source/css/_layout/pace.styl +0 -40
- package/source/css/_layout/rightside.styl +0 -58
- package/source/css/_layout/universe.styl +0 -18
- package/source/css/_page/_gallery/index.styl +0 -38
@@ -100,7 +100,7 @@
|
|
100
100
|
flex-direction row
|
101
101
|
width 100%
|
102
102
|
max-width 1200px
|
103
|
-
justify-content space-
|
103
|
+
justify-content space-evenly
|
104
104
|
flex-wrap wrap
|
105
105
|
margin 1rem auto 3rem
|
106
106
|
padding 0 1rem
|
@@ -239,7 +239,7 @@
|
|
239
239
|
line-height 1
|
240
240
|
display flex
|
241
241
|
align-items center
|
242
|
-
gap
|
242
|
+
gap .5rem
|
243
243
|
|
244
244
|
.author-avatar
|
245
245
|
width 20px
|
@@ -247,14 +247,11 @@
|
|
247
247
|
min-height 20px
|
248
248
|
min-width 20px
|
249
249
|
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
&:not(:last-child)
|
257
|
-
margin-right .5rem
|
250
|
+
i
|
251
|
+
font-size 14px
|
252
|
+
|
253
|
+
img
|
254
|
+
height 20px
|
258
255
|
|
259
256
|
&:hover
|
260
257
|
color var(--efu-theme)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
#about-page
|
2
|
-
.
|
2
|
+
.myInfoAndWittyWord
|
3
3
|
display flex
|
4
4
|
flex-direction column
|
5
5
|
justify-content center
|
@@ -34,7 +34,7 @@
|
|
34
34
|
margin-right auto
|
35
35
|
width 100%
|
36
36
|
font-size 36px
|
37
|
-
font-family
|
37
|
+
font-family $font-family
|
38
38
|
line-height 1.06
|
39
39
|
letter-spacing -.02em
|
40
40
|
color var(--efu-fontcolor)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
if hexo-config('
|
1
|
+
if hexo-config('brevity.home_mini')
|
2
2
|
#bbTimeList
|
3
3
|
background var(--efu-card-bg)
|
4
4
|
border-radius 12px
|
@@ -47,12 +47,12 @@ if hexo-config('says.home_mini')
|
|
47
47
|
font-size 16px
|
48
48
|
margin-left 1rem
|
49
49
|
|
50
|
-
if hexo-config('
|
50
|
+
if hexo-config('brevity.enable')
|
51
51
|
#bber
|
52
52
|
margin-top .5rem
|
53
53
|
width 100%
|
54
54
|
|
55
|
-
if hexo-config('
|
55
|
+
if hexo-config('brevity.style') == 2
|
56
56
|
.meta
|
57
57
|
display flex
|
58
58
|
align-items center
|
@@ -94,7 +94,7 @@ if hexo-config('says.enable')
|
|
94
94
|
width 100%
|
95
95
|
height 100%
|
96
96
|
|
97
|
-
if hexo-config('
|
97
|
+
if hexo-config('brevity.style') == 1
|
98
98
|
.bber-bottom
|
99
99
|
display flex
|
100
100
|
justify-content space-between
|
@@ -161,68 +161,69 @@ if hexo-config('says.enable')
|
|
161
161
|
i
|
162
162
|
margin-right 4px
|
163
163
|
|
164
|
-
.
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
164
|
+
if hexo-config('brevity.music')
|
165
|
+
.bber-music
|
166
|
+
width 100%
|
167
|
+
height 90px
|
168
|
+
margin .5rem 0
|
169
|
+
border-radius 8px
|
170
|
+
overflow hidden
|
171
|
+
border var(--style-border-always)
|
172
|
+
background var(--efu-secondbg)
|
172
173
|
|
173
|
-
|
174
|
-
|
174
|
+
.aplayer-lrc
|
175
|
+
display none
|
175
176
|
|
176
|
-
|
177
|
-
|
177
|
+
.aplayer
|
178
|
+
margin 0
|
178
179
|
|
179
|
-
|
180
|
-
|
181
|
-
|
180
|
+
.aplayer-info
|
181
|
+
.aplayer-music
|
182
|
+
height 23px
|
182
183
|
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
.aplayer-controller
|
190
|
-
align-items center
|
184
|
+
.aplayer-title
|
185
|
+
font-size .8rem
|
186
|
+
font-weight 700
|
187
|
+
margin 0
|
188
|
+
color var(--efu-black)
|
191
189
|
|
192
|
-
.aplayer-
|
193
|
-
|
190
|
+
.aplayer-controller
|
191
|
+
align-items center
|
194
192
|
|
195
|
-
.aplayer-bar
|
196
|
-
|
197
|
-
height 8px
|
198
|
-
border-radius 12px
|
199
|
-
transition .3s
|
200
|
-
overflow hidden
|
193
|
+
.aplayer-bar-wrap
|
194
|
+
padding 0
|
201
195
|
|
202
|
-
.aplayer-
|
203
|
-
|
196
|
+
.aplayer-bar
|
197
|
+
background var(--efu-gray)
|
198
|
+
height 8px
|
204
199
|
border-radius 12px
|
200
|
+
transition .3s
|
201
|
+
overflow hidden
|
205
202
|
|
206
|
-
.aplayer-
|
207
|
-
|
203
|
+
.aplayer-played
|
204
|
+
height 100%
|
205
|
+
border-radius 12px
|
208
206
|
|
209
|
-
|
210
|
-
|
211
|
-
border-radius 12px
|
207
|
+
.aplayer-thumb
|
208
|
+
display none
|
212
209
|
|
213
|
-
|
214
|
-
|
215
|
-
|
210
|
+
.aplayer-loaded
|
211
|
+
height 100%
|
212
|
+
border-radius 12px
|
213
|
+
|
214
|
+
&:hover
|
215
|
+
.aplayer-bar
|
216
|
+
height 12px
|
216
217
|
|
217
|
-
|
218
|
-
|
218
|
+
.aplayer-time
|
219
|
+
position initial
|
219
220
|
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
221
|
+
&.aplayer-withlrc
|
222
|
+
.aplayer-pic
|
223
|
+
height 82px
|
224
|
+
width 82px
|
225
|
+
margin 4px
|
226
|
+
border-radius 4px
|
226
227
|
|
227
228
|
.bber-video
|
228
229
|
position relative
|
@@ -9,8 +9,8 @@
|
|
9
9
|
if hexo-config('recent_comments.enable') || (hexo-config('console.enable') && hexo-config('console.recentComment.enable'))
|
10
10
|
@import "recentcomment.styl"
|
11
11
|
|
12
|
-
if hexo-config('
|
13
|
-
@import "
|
12
|
+
if hexo-config('brevity.enable')
|
13
|
+
@import "brevity.styl"
|
14
14
|
|
15
15
|
if hexo-config('music.enable')
|
16
16
|
@import "music.styl"
|
@@ -18,14 +18,11 @@ if hexo-config('music.enable')
|
|
18
18
|
if hexo-config('google_adsense.enable')
|
19
19
|
@import "google.styl"
|
20
20
|
|
21
|
-
|
22
|
-
@import "equipment.styl"
|
21
|
+
@import "equipment.styl"
|
23
22
|
|
24
|
-
|
25
|
-
@import "links.styl"
|
23
|
+
@import "links.styl"
|
26
24
|
|
27
|
-
|
28
|
-
@import "_about/about"
|
25
|
+
@import "_about/about"
|
29
26
|
|
30
27
|
@import "other"
|
31
28
|
|
package/source/css/index.styl
CHANGED
package/source/css/var.styl
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
error_img = hexo-config('errorpage.img')
|
2
2
|
|
3
|
+
$tag_cloud_limit = hexo-config('aside.tags.limit')
|
4
|
+
|
3
5
|
$dark_theme = convert(hexo-config('theme_color.dark'))
|
4
6
|
$dark_theme_op = convert(hexo-config('theme_color.dark') + '23')
|
5
7
|
$dark_theme_op_deep = convert(hexo-config('theme_color.dark') + 'dd')
|
package/source/js/main.js
CHANGED
@@ -150,7 +150,7 @@ const handleThemeChange = mode => {
|
|
150
150
|
};
|
151
151
|
|
152
152
|
const sco = {
|
153
|
-
|
153
|
+
lastWittyWord: "",
|
154
154
|
wasPageHidden: false,
|
155
155
|
musicPlaying: false,
|
156
156
|
scrollTo(elementId) {
|
@@ -232,15 +232,15 @@ const sco = {
|
|
232
232
|
if (!consoleHideAside) return;
|
233
233
|
consoleHideAside.classList.toggle("on", document.documentElement.classList.contains("hide-aside"));
|
234
234
|
},
|
235
|
-
|
236
|
-
const greetings = GLOBAL_CONFIG.aside.
|
235
|
+
changeWittyWord() {
|
236
|
+
const greetings = GLOBAL_CONFIG.aside.witty_words;
|
237
237
|
const greetingElement = document.getElementById("author-info__sayhi");
|
238
238
|
let randomGreeting;
|
239
239
|
do {
|
240
240
|
randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
|
241
|
-
} while (randomGreeting === this.
|
241
|
+
} while (randomGreeting === this.lastWittyWord);
|
242
242
|
greetingElement.textContent = randomGreeting;
|
243
|
-
this.
|
243
|
+
this.lastWittyWord = randomGreeting;
|
244
244
|
},
|
245
245
|
switchDarkMode() {
|
246
246
|
const isDarkMode = document.documentElement.getAttribute('data-theme') === 'dark';
|
@@ -315,7 +315,7 @@ const sco = {
|
|
315
315
|
const el = document.getElementById('author-info__sayhi');
|
316
316
|
if (el) {
|
317
317
|
const hours = new Date().getHours();
|
318
|
-
const lang = GLOBAL_CONFIG.aside.
|
318
|
+
const lang = GLOBAL_CONFIG.aside.state;
|
319
319
|
|
320
320
|
const localData = getLocalData(['twikoo', 'WALINE_USER_META', 'WALINE_USER', '_v_Cache_Meta', 'ArtalkUser']);
|
321
321
|
|
@@ -330,7 +330,7 @@ const sco = {
|
|
330
330
|
};
|
331
331
|
const nick = localData ? (localData.nick || localData.display_name) : null;
|
332
332
|
|
333
|
-
const prefix = this.wasPageHidden ? GLOBAL_CONFIG.aside.
|
333
|
+
const prefix = this.wasPageHidden ? GLOBAL_CONFIG.aside.witty_comment.back + nick : GLOBAL_CONFIG.aside.witty_comment.prefix + nick;
|
334
334
|
|
335
335
|
const greetings = [
|
336
336
|
{ start: 0, end: 5, text: nick ? prefix : lang.goodnight },
|
@@ -483,6 +483,19 @@ const sco = {
|
|
483
483
|
}
|
484
484
|
};
|
485
485
|
utils.addEventListenerPjax(switchBtn, 'click', handleSwitchBtn);
|
486
|
+
},
|
487
|
+
homeTypeit() {
|
488
|
+
if(typeof(home_subtitle) === 'undefined') return;
|
489
|
+
const ty = new TypeIt(".banners-title-small", {
|
490
|
+
speed: 200,
|
491
|
+
waitUntilVisible: true,
|
492
|
+
loop: true,
|
493
|
+
lifeLike: true,
|
494
|
+
});
|
495
|
+
home_subtitle.forEach(item => {
|
496
|
+
ty.type(item).pause(500).delete(item);
|
497
|
+
});
|
498
|
+
ty.go();
|
486
499
|
}
|
487
500
|
};
|
488
501
|
|
@@ -747,6 +760,7 @@ window.refreshFn = () => {
|
|
747
760
|
initObserver();
|
748
761
|
if (is_home) {
|
749
762
|
showTodayCard();
|
763
|
+
sco.homeTypeit();
|
750
764
|
}
|
751
765
|
typeof updatePostsBasedOnComments === 'function' && updatePostsBasedOnComments();
|
752
766
|
if (is_post || is_page) {
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* @license Copyright 2024 Ever Funnel. All rights reserved.
|
3
3
|
* Licensed under the MIT License.
|
4
4
|
*/
|
5
|
-
function waterfall(t){function e(t,e){var n=window.getComputedStyle(t);return parseFloat(n["margin"+e])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.top)||0}function o(t){return parseFloat(t.style.left)||0}function i(t){return t.clientWidth}function l(t){return t.clientHeight}function u(t){return r(t)+l(t)+e(t,"Bottom")}function a(t){return o(t)+i(t)+e(t,"Right")}function s(t){t.sort(function(t,e){var n=u(t),r=u(e);return n===r?o(e)-o(t):r-n})}function f(e){i(t)!==containerWidth&&(window.removeEventListener(e.type,f),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var c=Array.from(t.children).map(function(t){return(t.style.position="absolute"),t});t.style.position="relative";var p=Array.from(t.querySelectorAll("img")),y=p.map(function(t){return new Promise(function(e){t.complete?e():(t.addEventListener("load",e),t.addEventListener("error",e))})});return Promise.all(y).then(function(){var r=[];c.length&&(c[0].style.top="0px",c[0].style.left=n(e(c[0],"Left")),r.push(c[0]));for(var l=1;l<c.length;l++){var p=c[l-1],y=c[l];if(!(a(p)+i(y)<=i(t)))break;y.style.top=p.style.top;y.style.left=n(a(p));r.push(y)}for(var v=r.length;v<c.length;v++){s(r);var d=c[v],h=r.pop();d.style.top=n(u(h)+e(d,"Top"));d.style.left=n(o(h));r.push(d)}s(r);var m=r[0];t.style.height=n(u(m)+e(m,"Bottom"));i(t);window.addEventListener("resize",f)})}
|
5
|
+
function waterfall(t){function e(t,e){var n=window.getComputedStyle(t);return parseFloat(n["margin"+e])||0}function n(t){return t+"px"}function r(t){return parseFloat(t.style.top)||0}function o(t){return parseFloat(t.style.left)||0}function i(t){return t.clientWidth}function l(t){return t.clientHeight}function u(t){return r(t)+l(t)+e(t,"Bottom")}function a(t){return o(t)+i(t)+e(t,"Right")}function s(t){t.sort(function(t,e){var n=u(t),r=u(e);return n===r?o(e)-o(t):r-n})}function f(e){var containerWidth = i(t);i(t)!==containerWidth&&(window.removeEventListener(e.type,f),waterfall(t))}"string"==typeof t&&(t=document.querySelector(t));var c=Array.from(t.children).map(function(t){return(t.style.position="absolute"),t});t.style.position="relative";var p=Array.from(t.querySelectorAll("img")),y=p.map(function(t){return new Promise(function(e){t.complete?e():(t.addEventListener("load",e),t.addEventListener("error",e))})});return Promise.all(y).then(function(){var r=[];c.length&&(c[0].style.top="0px",c[0].style.left=n(e(c[0],"Left")),r.push(c[0]));for(var l=1;l<c.length;l++){var p=c[l-1],y=c[l];if(!(a(p)+i(y)<=i(t)))break;y.style.top=p.style.top;y.style.left=n(a(p));r.push(y)}for(var v=r.length;v<c.length;v++){s(r);var d=c[v],h=r.pop();d.style.top=n(u(h)+e(d,"Top"));d.style.left=n(o(h));r.push(d)}s(r);var m=r[0];t.style.height=n(u(m)+e(m,"Bottom"));i(t);window.addEventListener("resize",f)})}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
name: Code Review Bot
|
2
|
-
|
3
|
-
permissions:
|
4
|
-
contents: read
|
5
|
-
pull-requests: write
|
6
|
-
|
7
|
-
on:
|
8
|
-
pull_request:
|
9
|
-
types: [opened, reopened, synchronize]
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
test:
|
13
|
-
# if: ${{ contains(github.event.*.labels.*.name, 'gpt review') }} # Optional; to run only when a label is attached
|
14
|
-
runs-on: ubuntu-latest
|
15
|
-
steps:
|
16
|
-
- uses: anc95/ChatGPT-CodeReview@main
|
17
|
-
env:
|
18
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
19
|
-
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
20
|
-
# Optional
|
21
|
-
LANGUAGE: Chinese
|
22
|
-
OPENAI_API_ENDPOINT: https://api.openai.com/v1
|
23
|
-
MODEL: gpt-3.5-turbo
|
24
|
-
PROMPT:
|
25
|
-
top_p: 1
|
26
|
-
temperature: 1
|
27
|
-
max_tokens: 1000
|
28
|
-
MAX_PATCH_LENGTH: 1000
|
@@ -1,25 +0,0 @@
|
|
1
|
-
name: Close need info
|
2
|
-
|
3
|
-
on:
|
4
|
-
schedule:
|
5
|
-
- cron: "0 0 */1 * *"
|
6
|
-
workflow_dispatch:
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
close-need-info:
|
10
|
-
runs-on: ubuntu-latest
|
11
|
-
steps:
|
12
|
-
- name: close-issues
|
13
|
-
uses: actions-cool/issues-helper@v3
|
14
|
-
with:
|
15
|
-
actions: "close-issues"
|
16
|
-
token: ${{ secrets.GITHUB_TOKEN }}
|
17
|
-
labels: "question"
|
18
|
-
inactive-day: 60
|
19
|
-
close-reason: "not_planned"
|
20
|
-
body: |
|
21
|
-
Hi there! This issue has been automatically closed because it has not had any activity for 60 days. We label issues as "questions" in hopes of community or maintainer input, and it seems this issue has gone stale.
|
22
|
-
|
23
|
-
If you still need assistance or believe this closure is a mistake, please feel free to reopen the issue or create a new one with updated details. We're here to help!
|
24
|
-
|
25
|
-
Thank you for your contributions to our project!
|
@@ -1,13 +0,0 @@
|
|
1
|
-
include ../widgets/page/banner
|
2
|
-
.flink.article-container
|
3
|
-
each data in site.data.tlink.links
|
4
|
-
h2= data.class_name + " (" + data.link_list.length + ")"
|
5
|
-
.flink-desc= data.descr
|
6
|
-
case data.type
|
7
|
-
when 'card'
|
8
|
-
include ../widgets/page/links/linksCard
|
9
|
-
when 'item'
|
10
|
-
include ../widgets/page/links/linksItem
|
11
|
-
when 'discn'
|
12
|
-
include ../widgets/page/links/linksDiscn
|
13
|
-
!= page.content
|
package/scripts/tags/article.js
DELETED
@@ -1,56 +0,0 @@
|
|
1
|
-
'use strict';
|
2
|
-
|
3
|
-
const article = ([path]) => {
|
4
|
-
const post = hexo.locals.get("posts").data.find(post => post.path === path);
|
5
|
-
if (!post) return '';
|
6
|
-
|
7
|
-
const createTagLinks = tags => tags.map(tag =>
|
8
|
-
`<a class="article-meta__tags fancybox" href="${tag.path}" onclick="event.stopPropagation();">
|
9
|
-
<span class="tags-punctuation">
|
10
|
-
<i class="solitude fa-solid fa-hashtag"></i>${tag.name}
|
11
|
-
</span>
|
12
|
-
</a>`
|
13
|
-
).join('');
|
14
|
-
|
15
|
-
const createCategory = categories => categories.length > 0
|
16
|
-
? `<span class="article-meta sticky-warp">
|
17
|
-
<span class="original">${categories[0].name}</span>
|
18
|
-
</span>`
|
19
|
-
: '';
|
20
|
-
|
21
|
-
const createPostCover = post =>
|
22
|
-
`<div class="post_cover">
|
23
|
-
<a href="/${post.path}" class="fancybox" title="${post.title}">
|
24
|
-
<img class="post_bg" src="${post.cover}" alt="${post.title}">
|
25
|
-
</a>
|
26
|
-
</div>`;
|
27
|
-
|
28
|
-
const createRecentPostInfoTop = (category, post) =>
|
29
|
-
`<div class="recent-post-info-top">
|
30
|
-
<div class="recent-post-info-top-tips">${category}</div>
|
31
|
-
<a class="article-title fancybox" href="/${post.path}" title="${post.title}">${post.title}</a>
|
32
|
-
</div>`;
|
33
|
-
|
34
|
-
const createContent = description =>
|
35
|
-
`<div class="content">${description || ''}</div>`;
|
36
|
-
|
37
|
-
const createArticleMetaWrap = (tags, date) =>
|
38
|
-
`<div class="article-meta-wrap">
|
39
|
-
<span class="article-meta tags">${tags}</span>
|
40
|
-
<span class="post-meta-date">
|
41
|
-
<time datetime="${date}" style="display: inline;"></time>
|
42
|
-
</span>
|
43
|
-
</div>`;
|
44
|
-
|
45
|
-
const tags = createTagLinks(post.tags);
|
46
|
-
const category = createCategory(post.categories.data);
|
47
|
-
const postCover = createPostCover(post);
|
48
|
-
const recentPostInfoTop = createRecentPostInfoTop(category, post);
|
49
|
-
const content = createContent(post.description);
|
50
|
-
const articleMetaWrap = createArticleMetaWrap(tags, post.date);
|
51
|
-
const recentPostInfo = `<div class="recent-post-info">${recentPostInfoTop + content + articleMetaWrap}</div>`;
|
52
|
-
|
53
|
-
return `<div class="recent-post-item" onclick="pjax.loadUrl('/${post.path}')">${postCover + recentPostInfo}</div>`;
|
54
|
-
};
|
55
|
-
|
56
|
-
hexo.extend.tag.register('article', article);
|
@@ -1,13 +0,0 @@
|
|
1
|
-
if hexo-config("expire.enable")
|
2
|
-
.expire
|
3
|
-
display flex
|
4
|
-
align-items center
|
5
|
-
border-radius 8px
|
6
|
-
background-color rgba(255,0,0,.5)
|
7
|
-
border-left 5px solid var(--efu-red)
|
8
|
-
padding 10px 16px
|
9
|
-
color var(--efu-white)
|
10
|
-
|
11
|
-
i.solitude
|
12
|
-
color var(--efu-white)
|
13
|
-
margin-right 8px
|
@@ -1,60 +0,0 @@
|
|
1
|
-
if hexo-config('keyboard.enable')
|
2
|
-
#keyboard-tips
|
3
|
-
position fixed
|
4
|
-
top 80px
|
5
|
-
left 20px
|
6
|
-
z-index 999
|
7
|
-
background var(--efu-maskbgdeep)
|
8
|
-
border-radius 12px
|
9
|
-
border var(--style-border)
|
10
|
-
padding 20px
|
11
|
-
display flex
|
12
|
-
flex-direction column
|
13
|
-
backdrop-filter saturate(180%) blur(20px)
|
14
|
-
transform translateZ(0)
|
15
|
-
pointer-events none
|
16
|
-
box-shadow var(--efu-shadow-border)
|
17
|
-
opacity 0
|
18
|
-
transition .3s
|
19
|
-
|
20
|
-
&.show
|
21
|
-
opacity 1
|
22
|
-
transition .1s
|
23
|
-
|
24
|
-
.keyboardTitle
|
25
|
-
font-size 12px
|
26
|
-
color var(--efu-secondtext)
|
27
|
-
line-height 1
|
28
|
-
|
29
|
-
.keyboardList
|
30
|
-
display flex
|
31
|
-
flex-direction column
|
32
|
-
margin-top 8px
|
33
|
-
|
34
|
-
.keyboardItem
|
35
|
-
display flex
|
36
|
-
margin-top 4px
|
37
|
-
|
38
|
-
.keyGroup
|
39
|
-
display flex
|
40
|
-
align-items center
|
41
|
-
width 90px
|
42
|
-
|
43
|
-
.key
|
44
|
-
padding 0.2em 0.4em
|
45
|
-
font-family inherit
|
46
|
-
background-color var(--efu-card-bg)
|
47
|
-
color var(--efu-fontcolor)
|
48
|
-
border var(--style-border)
|
49
|
-
border-color var(--efu-secondtext)
|
50
|
-
border-bottom 2px solid var(--efu-secondtext)
|
51
|
-
box-shadow var(--efu-shadow-border)
|
52
|
-
border-radius 0.25rem
|
53
|
-
overflow-wrap break-word
|
54
|
-
overflow-x auto
|
55
|
-
font-weight 500
|
56
|
-
font-size .875em
|
57
|
-
margin-right 4px
|
58
|
-
vertical-align baseline
|
59
|
-
line-height 1
|
60
|
-
height 24px
|
@@ -1,40 +0,0 @@
|
|
1
|
-
if hexo-config('loading.pace')
|
2
|
-
.pace
|
3
|
-
pointer-events: none
|
4
|
-
user-select: none
|
5
|
-
z-index: 2000
|
6
|
-
position: fixed
|
7
|
-
margin: auto
|
8
|
-
top: 4px
|
9
|
-
left: 0
|
10
|
-
right: 0
|
11
|
-
height: 8px
|
12
|
-
border-radius: 8px
|
13
|
-
width: 4rem
|
14
|
-
background: var(--efu-secondbg)
|
15
|
-
border: var(--style-border)
|
16
|
-
overflow: hidden
|
17
|
-
|
18
|
-
&.pace-inactive
|
19
|
-
opacity: 0
|
20
|
-
transition: .3s
|
21
|
-
top: -8px
|
22
|
-
|
23
|
-
.pace-progress
|
24
|
-
opacity: 0
|
25
|
-
transition: .3s ease-in
|
26
|
-
|
27
|
-
.pace-progress
|
28
|
-
box-sizing: border-box
|
29
|
-
transform: translate3d(0,0,0)
|
30
|
-
max-width: 200px
|
31
|
-
z-index: 2000
|
32
|
-
display: block
|
33
|
-
position: absolute
|
34
|
-
top: 0
|
35
|
-
right: 100%
|
36
|
-
height: 100%
|
37
|
-
width: 100%
|
38
|
-
background: var(--efu-logo-color)
|
39
|
-
animation: gradient 2s ease infinite
|
40
|
-
background-size: 200%
|
@@ -1,58 +0,0 @@
|
|
1
|
-
if hexo-config('rightside.enable')
|
2
|
-
#rightside
|
3
|
-
position: fixed
|
4
|
-
right: -2.5rem
|
5
|
-
bottom: 20px
|
6
|
-
z-index: 1000
|
7
|
-
opacity: 0
|
8
|
-
transition: all .5s
|
9
|
-
&.needEndHide
|
10
|
-
display block!important
|
11
|
-
&.hide.needEndHide
|
12
|
-
bottom 0!important
|
13
|
-
transform: none !important
|
14
|
-
|
15
|
-
button
|
16
|
-
display: block
|
17
|
-
margin-bottom: 5px
|
18
|
-
width: 1.8rem
|
19
|
-
height: 1.8rem
|
20
|
-
border-radius: 50%
|
21
|
-
background-color: var(--btn-bg)
|
22
|
-
color: var(--btn-color)
|
23
|
-
text-align: center
|
24
|
-
font-size: 16px
|
25
|
-
|
26
|
-
&.pc
|
27
|
-
display: block
|
28
|
-
+maxWidth900()
|
29
|
-
display: none
|
30
|
-
|
31
|
-
&.mobile
|
32
|
-
display: none
|
33
|
-
|
34
|
-
+maxWidth900()
|
35
|
-
display: block
|
36
|
-
|
37
|
-
&.top
|
38
|
-
&:hover
|
39
|
-
#percent
|
40
|
-
display: none
|
41
|
-
i
|
42
|
-
display: block
|
43
|
-
transition: all .3s
|
44
|
-
transform: scale(1.3)
|
45
|
-
i
|
46
|
-
transition: all .3s
|
47
|
-
display: none
|
48
|
-
&.show
|
49
|
-
display: block
|
50
|
-
|
51
|
-
.rs_hide
|
52
|
-
transform: translate(45px, 0)
|
53
|
-
transition: all .4s
|
54
|
-
opacity 0
|
55
|
-
|
56
|
-
&.show
|
57
|
-
opacity .8
|
58
|
-
transform: translate(0, 0)
|
@@ -1,18 +0,0 @@
|
|
1
|
-
// universe
|
2
|
-
if hexo-config('display_mode.universe')
|
3
|
-
#universe
|
4
|
-
display block
|
5
|
-
position fixed
|
6
|
-
margin 0
|
7
|
-
padding 0
|
8
|
-
border 0
|
9
|
-
outline 0
|
10
|
-
left 0
|
11
|
-
top 0
|
12
|
-
width 100%
|
13
|
-
height 100%
|
14
|
-
pointer-events none
|
15
|
-
z-index 1
|
16
|
-
[data-theme=light]
|
17
|
-
#universe
|
18
|
-
display none
|