hexo-theme-solitude 2.0.12-rc.1 → 2.0.13
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/README.md +3 -2
- package/README_zh-Hans.md +1 -3
- package/README_zh-Hant.md +3 -2
- package/_config.yml +4 -1
- package/languages/default.yml +2 -1
- package/languages/en.yml +2 -0
- package/languages/zh-CN.yml +2 -1
- package/languages/zh-TW.yml +24 -22
- package/layout/includes/head/config.pug +2 -0
- package/layout/includes/head/page_config.pug +2 -1
- package/layout/includes/inject/body.pug +0 -3
- package/layout/includes/inject/head.pug +6 -0
- package/layout/includes/page/says.pug +2 -2
- package/layout/includes/rightmenu.pug +1 -1
- package/layout/includes/sidebar.pug +10 -1
- package/layout/includes/widgets/aside/asideNewestPost.pug +8 -11
- package/layout/includes/widgets/aside/asideWebInfo.pug +2 -2
- package/layout/includes/widgets/page/about/other.pug +2 -8
- package/layout/includes/widgets/page/links/banner.pug +0 -1
- package/layout/includes/widgets/post/postInfo.pug +3 -3
- package/layout/page.pug +1 -1
- package/package.json +1 -1
- package/scripts/event/merge_config.js +1 -0
- package/scripts/event/page.js +1 -1
- package/scripts/filter/checkThemeConfig.js +3 -3
- package/scripts/helper/related_post.js +1 -1
- package/scripts/tags/article.js +6 -27
- package/scripts/tags/tabs.js +1 -3
- package/source/css/_comments/comment.styl +7 -5
- package/source/css/_comments/twikoo.styl +3 -4
- package/source/css/_global/index.styl +1 -1
- package/source/css/_layout/aside.styl +24 -26
- package/source/css/_layout/fullpage.styl +1 -0
- package/source/css/_layout/recent-post.styl +0 -2
- package/source/css/_page/_about/buff.styl +0 -1
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_about/game.styl +0 -2
- package/source/css/_page/_about/maxim.styl +0 -1
- package/source/css/_page/_about/myphoto.styl +0 -1
- package/source/css/_page/_about/oneself.styl +1 -1
- package/source/css/_page/_about/personalities.styl +1 -1
- package/source/css/_page/_about/skills.styl +0 -1
- package/source/css/_page/_about/statistic.styl +0 -1
- package/source/css/_page/other.styl +2 -1
- package/source/css/_post/copyright.styl +1 -0
- package/source/css/_post/meta.styl +1 -1
- package/source/css/_post/tools.styl +2 -0
- package/source/js/covercolor/api.js +5 -0
- package/source/js/covercolor/ave.js +5 -0
- package/source/js/covercolor/local.js +5 -0
- package/source/js/main.js +2 -2
- package/source/js/right_menu.js +20 -10
- /package/layout/includes/{body → head}/mode.pug +0 -0
package/README.md
CHANGED
@@ -43,7 +43,6 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
|
|
43
43
|
## Todo
|
44
44
|
|
45
45
|
- [x] The list of articles is displayed in three columns on the homepage.
|
46
|
-
- [x] btns tags plugin.
|
47
46
|
|
48
47
|
> If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
49
48
|
|
@@ -81,4 +80,6 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
|
|
81
80
|
|
82
81
|
## License
|
83
82
|
|
84
|
-
[MIT](./LICENSE) License © 2023-PRESENT [
|
83
|
+
[MIT](./LICENSE) License © 2023-PRESENT [一小只托尼](https://github.com/everfu)
|
84
|
+
|
85
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/README_zh-Hans.md
CHANGED
@@ -43,8 +43,6 @@
|
|
43
43
|
## Todo
|
44
44
|
|
45
45
|
- [x] 首页顶部新样式
|
46
|
-
- [x] 首页文章列表三列显示
|
47
|
-
- [x] btns 外挂标签
|
48
46
|
|
49
47
|
> 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
50
48
|
|
@@ -82,6 +80,6 @@
|
|
82
80
|
|
83
81
|
## 版权
|
84
82
|
|
85
|
-
[MIT](./LICENSE) License © 2023-至今 [
|
83
|
+
[MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/efuo)
|
86
84
|
|
87
85
|
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/README_zh-Hant.md
CHANGED
@@ -43,7 +43,6 @@
|
|
43
43
|
## Todo
|
44
44
|
|
45
45
|
- [x] 首页文章列表三列显示
|
46
|
-
- [x] btns 外挂标签
|
47
46
|
|
48
47
|
## 應用
|
49
48
|
|
@@ -79,4 +78,6 @@
|
|
79
78
|
|
80
79
|
## 版權
|
81
80
|
|
82
|
-
[MIT](./LICENSE) License © 2023-至今 [
|
81
|
+
[MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/everfu)
|
82
|
+
|
83
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
package/_config.yml
CHANGED
@@ -487,7 +487,7 @@ envelope:
|
|
487
487
|
# can only use NetEase Cloud Music, QQ Music and other music platforms supported by the mainland China region,
|
488
488
|
# the subsequent consideration of the use of JSON files to store music information and customize the implementation of the third-party API does not depend on the page.
|
489
489
|
# Music Page
|
490
|
-
meting_api: "https://meting.
|
490
|
+
meting_api: "https://meting.everfu.cn/?server=:server&type=:type&id=:id&auth=:auth&r=:r" # Custom API
|
491
491
|
music:
|
492
492
|
enable: false
|
493
493
|
# 歌单 ID / 单曲 ID
|
@@ -882,6 +882,9 @@ right_menu:
|
|
882
882
|
# Whether to display the hot comment switch.
|
883
883
|
# 是否显示热门评论开关
|
884
884
|
commentBarrage: false
|
885
|
+
# Whether to display the browser's context menu when hold Ctrl key.
|
886
|
+
# 是否在按住 Ctrl 键时显示浏览器右键菜单
|
887
|
+
ctrlOriginalMenu: false
|
885
888
|
# Simplified and Traditional Chinese translation.
|
886
889
|
# 简繁体转换
|
887
890
|
translate:
|
package/languages/default.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: Function
|
142
142
|
darkmode: Display mode
|
143
|
+
siteinfo: Site information
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: Article from ${title}
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: This image cannot be copied or downloaded.
|
199
|
+
ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
|
198
200
|
barrage:
|
199
201
|
open: Open Barrage
|
200
202
|
close: Close Barrage
|
@@ -219,7 +221,6 @@ about:
|
|
219
221
|
tj:
|
220
222
|
tip: Data
|
221
223
|
title: Access statistics
|
222
|
-
post_tip: 'Stats from:'
|
223
224
|
personalities:
|
224
225
|
tip1: At
|
225
226
|
tip2: 'Learn more:'
|
package/languages/en.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: Function
|
142
142
|
darkmode: Display mode
|
143
|
+
siteinfo: Site information
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: Article from ${title}
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: This image cannot be copied or downloaded.
|
199
|
+
ctrl_original_menu: Hold Ctrl + right-click to open the browser's context menu
|
198
200
|
barrage:
|
199
201
|
open: Open Barrage
|
200
202
|
close: Close Barrage
|
package/languages/zh-CN.yml
CHANGED
@@ -140,6 +140,7 @@ console:
|
|
140
140
|
sidebar:
|
141
141
|
function: 功能
|
142
142
|
darkmode: 显示模式
|
143
|
+
siteinfo: 网站信息
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: 来自${title}的文章
|
@@ -195,6 +196,7 @@ right_menu:
|
|
195
196
|
chs_to_cht: 轉為繁體
|
196
197
|
cht_to_chs: 转为简体
|
197
198
|
img_error: 此图片无法复制与下载
|
199
|
+
ctrl_original_menu: 按住Ctrl+右键可打开浏览器右键菜单
|
198
200
|
barrage:
|
199
201
|
open: 显示热评
|
200
202
|
close: 关闭热评
|
@@ -219,7 +221,6 @@ about:
|
|
219
221
|
tj:
|
220
222
|
tip: 数据
|
221
223
|
title: 访问统计
|
222
|
-
post_tip: 统计信息来自
|
223
224
|
personalities:
|
224
225
|
tip1: 在
|
225
226
|
tip2: 了解更多关于
|
package/languages/zh-TW.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
more: 更多
|
2
2
|
star: 喜歡這篇的人也看了
|
3
|
-
random:
|
3
|
+
random: 隨便逛逛
|
4
4
|
upload: 發佈時間:
|
5
5
|
totalk: 無需刪除空行,直接輸入評論即可
|
6
6
|
loading: 加載中...
|
@@ -18,9 +18,9 @@ copy:
|
|
18
18
|
|
19
19
|
copy_copyright:
|
20
20
|
author: 作者
|
21
|
-
link:
|
21
|
+
link: 鏈結
|
22
22
|
source: 來源
|
23
|
-
info:
|
23
|
+
info: 著作權歸作者所有。商業轉載請聯繫作者獲得授權,非商業轉載請註明出處。
|
24
24
|
|
25
25
|
time:
|
26
26
|
day: "天前"
|
@@ -41,16 +41,16 @@ nav:
|
|
41
41
|
site_name_title: 返回博客主頁
|
42
42
|
backtop: 返回頂部
|
43
43
|
travellings: 開往-友鏈接力
|
44
|
-
search:
|
44
|
+
search: 搜尋
|
45
45
|
randompost: 隨機一篇文章
|
46
|
-
console:
|
46
|
+
console: 主控台
|
47
47
|
|
48
48
|
home:
|
49
49
|
home: 推薦
|
50
50
|
sticky: 置頂
|
51
51
|
new: 最新
|
52
52
|
read: 未讀
|
53
|
-
recommend:
|
53
|
+
recommend: 薦
|
54
54
|
recommendmore: 更多推薦
|
55
55
|
archives: 全部文章
|
56
56
|
|
@@ -66,9 +66,9 @@ post:
|
|
66
66
|
pv: 文章熱度
|
67
67
|
comment: 評論數
|
68
68
|
copyright:
|
69
|
-
reprint:
|
70
|
-
original:
|
71
|
-
original_end:
|
69
|
+
reprint: 本文是轉載或翻譯文章,版權歸原作者所有。轉載本文請聯繫原作者。
|
70
|
+
original: 本文是原創文章,採用
|
71
|
+
original_end: 協議,完整轉載請註明來自
|
72
72
|
share:
|
73
73
|
qq: 分享到QQ
|
74
74
|
weibo: 分享到微博
|
@@ -76,8 +76,8 @@ post:
|
|
76
76
|
twitter: 分享到Twitter
|
77
77
|
linkedin: 分享到LinkedIn
|
78
78
|
facebook: 分享到Facebook
|
79
|
-
link:
|
80
|
-
qrcode:
|
79
|
+
link: 複製文章鏈接
|
80
|
+
qrcode: 使用手機掃碼閱讀這篇文章
|
81
81
|
whatsapp: 分享到WhatsApp
|
82
82
|
ai:
|
83
83
|
title: 文章摘要
|
@@ -109,12 +109,12 @@ aside:
|
|
109
109
|
wordcount: '字數統計:'
|
110
110
|
toc: 文章目錄
|
111
111
|
tagmore: 查看全部
|
112
|
-
avatar:
|
112
|
+
avatar: 頭像
|
113
113
|
hello: 好久不見,
|
114
114
|
back: 歡迎再次回來,
|
115
|
-
sticker:
|
116
|
-
newpost:
|
117
|
-
newcomment:
|
115
|
+
sticker: 心情貼紙
|
116
|
+
newpost: 最近發佈
|
117
|
+
newcomment: 最新評論
|
118
118
|
card:
|
119
119
|
posts: '累計文章數:'
|
120
120
|
tags: '標籤總數:'
|
@@ -124,22 +124,23 @@ console:
|
|
124
124
|
comment_tip: 互動
|
125
125
|
comment_title: 評論
|
126
126
|
tag_tip: 標籤
|
127
|
-
tag_title:
|
128
|
-
switch_darkmode:
|
129
|
-
switch_hideAside:
|
127
|
+
tag_title: 尋找感興趣的領域
|
128
|
+
switch_darkmode: 晝夜切換
|
129
|
+
switch_hideAside: 側邊欄顯示控制
|
130
130
|
switch_keyboard: 鍵盤快捷鍵
|
131
131
|
switch_music: 音樂開關
|
132
132
|
archive_unit: 篇
|
133
133
|
recent_comment_more: 最近評論
|
134
134
|
newest_comment:
|
135
135
|
image: 圖片
|
136
|
-
link:
|
136
|
+
link: 鏈結
|
137
137
|
code: 代碼
|
138
138
|
emoji: 表情
|
139
139
|
|
140
140
|
sidebar:
|
141
141
|
function: 功能
|
142
142
|
darkmode: 顯示模式
|
143
|
+
siteinfo: 網站信息
|
143
144
|
|
144
145
|
footer:
|
145
146
|
description: 來自${title}的文章
|
@@ -181,10 +182,10 @@ f12: 開發者模式已打開,請遵循GPL協定。
|
|
181
182
|
|
182
183
|
right_menu:
|
183
184
|
copy: 複製選中文本
|
184
|
-
paste:
|
185
|
+
paste: 貼上文本
|
185
186
|
comment: 引用到評論
|
186
187
|
new: 新窗口打開
|
187
|
-
link:
|
188
|
+
link: 複製鏈結位址
|
188
189
|
img: 複製此圖片
|
189
190
|
downloadImg: 下載此圖片
|
190
191
|
search: 站內搜索
|
@@ -193,6 +194,7 @@ right_menu:
|
|
193
194
|
chs_to_cht: 轉為繁體
|
194
195
|
cht_to_chs: 转为简体
|
195
196
|
img_error: 此圖片無法複製與下載
|
197
|
+
ctrl_original_menu: 按住Ctrl+右鍵可打開瀏覽器右鍵選單
|
196
198
|
barrage:
|
197
199
|
open: 顯示熱評
|
198
200
|
close: 關閉熱評
|
@@ -229,4 +231,4 @@ message:
|
|
229
231
|
essay:
|
230
232
|
tip0: '- 已展開所有短文 -'
|
231
233
|
tip1: '- 只展示最近 #{count} 條短文 -'
|
232
|
-
link: '
|
234
|
+
link: '鏈結'
|
@@ -6,5 +6,6 @@ script#config-diff.
|
|
6
6
|
page: '!{page.type}',
|
7
7
|
toc: !{!!page.toc},
|
8
8
|
comment: !{!!page.comment},
|
9
|
-
ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false}
|
9
|
+
ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false},
|
10
|
+
color: !{page.color ? "'"+ page.color+"'" : false},
|
10
11
|
}
|
@@ -38,11 +38,11 @@ if theme.says.enable
|
|
38
38
|
.bber-bottom
|
39
39
|
.bber-info
|
40
40
|
.bber-info-time
|
41
|
-
i.solitude.fa-solid.fa-calendar-
|
41
|
+
i.solitude.fa-solid.fa-calendar-day
|
42
42
|
time.datetime(datetime=moment(item.date).format())
|
43
43
|
if item.location
|
44
44
|
.bber-info-location
|
45
|
-
i.solitude.
|
45
|
+
i.solitude.fas.fa-location-dot
|
46
46
|
= item.location
|
47
47
|
if item.link
|
48
48
|
a.bber-content-link(href=url_for(item.link) target="_blank")
|
@@ -7,7 +7,7 @@ div#rightMenu
|
|
7
7
|
div.rightMenu-item#menu-forward
|
8
8
|
i.solitude.fa-solid.fa-arrow-right
|
9
9
|
div.rightMenu-item#menu-refresh
|
10
|
-
i.solitude.fa-solid.fa-
|
10
|
+
i.solitude.fa-solid.fa-arrows-rotate
|
11
11
|
div.rightMenu-item#menu-top
|
12
12
|
i.solitude.fa-solid.fa-arrow-up
|
13
13
|
div.rightMenu-group.rightMenu-line.rightMenuPlugin
|
@@ -29,4 +29,13 @@ div#sidebar(style="zoom: 1;")
|
|
29
29
|
div.card-tag-cloud
|
30
30
|
each tag in site.tags.find({ parent: { $exists: false } }).data
|
31
31
|
a(href=url_for(tag.path))= tag.name
|
32
|
-
sup= tag.length
|
32
|
+
sup= tag.length
|
33
|
+
if theme.wordcount && theme.aside.siteinfo.wordcount
|
34
|
+
span.sidebar-menu-item-title= __('sidebar.siteinfo')
|
35
|
+
.webinfo
|
36
|
+
.webinfo-item
|
37
|
+
.webinfo-item-title
|
38
|
+
i.item-icon.solitude.fa-solid.fa-file-word
|
39
|
+
.item-name= __('aside.wordcount')
|
40
|
+
.item-count= totalcount(site)
|
41
|
+
|
@@ -3,14 +3,11 @@
|
|
3
3
|
i.solitude.fa-solid.fa-map
|
4
4
|
span= _p('aside.newpost')
|
5
5
|
.aside-list
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
.
|
13
|
-
span.
|
14
|
-
if post.categories.data[0]
|
15
|
-
span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
16
|
-
- index++
|
6
|
+
each post in site.posts.data.sort((a, b) => b.date < a.date ? -1 : 1).slice(0, 5)
|
7
|
+
a.aside-list-item(href=url_for(post.path) title=post.title)
|
8
|
+
.thumbnail
|
9
|
+
img(alt=post.title src=url_for(post.cover))
|
10
|
+
.content
|
11
|
+
span.title(href=url_for(post.path) title=post.title)= post.title
|
12
|
+
if post.categories.data[0]
|
13
|
+
span.article-recent_post_categories(href=url_for(post.path))= post.categories.data[0].name
|
@@ -31,13 +31,13 @@
|
|
31
31
|
if theme.aside.siteinfo.runtimeenable
|
32
32
|
.webinfo-item
|
33
33
|
.webinfo-item-title
|
34
|
-
i.item-icon.solitude.fa-solid.fa-calendar-
|
34
|
+
i.item-icon.solitude.fa-solid.fa-calendar-day
|
35
35
|
.item-name= __('aside.runtime')
|
36
36
|
.item-count#runtimeshow
|
37
37
|
if theme.aside.siteinfo.updatetime
|
38
38
|
.webinfo-item
|
39
39
|
.webinfo-item-title
|
40
|
-
i.item-icon.solitude.fa-solid.fa-rotate
|
40
|
+
i.item-icon.solitude.fa-solid.fa-arrows-rotate
|
41
41
|
.item-name= __('aside.updatetime')
|
42
42
|
time.item-count(datetime=new Date())
|
43
43
|
if theme.wordcount && theme.aside.siteinfo.wordcount
|
@@ -9,13 +9,7 @@ if tj || oneself
|
|
9
9
|
.author-content-item-tips=_p('about.other.tj.tip')
|
10
10
|
span.author-content-item-title=_p('about.other.tj.title')
|
11
11
|
#statistic
|
12
|
-
.post-tips
|
13
|
-
= _p('about.other.tj.post_tip')
|
14
|
-
case tj.provider
|
15
|
-
when '51la'
|
16
|
-
a(href="https://v6.51.la/") 51la网站统计
|
17
|
-
when 'baidu'
|
18
|
-
a(href="https://tongji.baidu.com/") 百度统计
|
12
|
+
.post-tips!= _p(tj.desc)
|
19
13
|
if tj.button
|
20
14
|
.banner-button-group
|
21
15
|
a.banner-button(href=url_for(tj.button_link))
|
@@ -42,7 +36,7 @@ if tj || oneself
|
|
42
36
|
}
|
43
37
|
s.innerHTML = html;
|
44
38
|
});
|
45
|
-
when '
|
39
|
+
when 'custom'
|
46
40
|
script.
|
47
41
|
fetch("#{tj.url}")
|
48
42
|
.then(res => res.json())
|
@@ -18,11 +18,11 @@
|
|
18
18
|
.meta-secondline
|
19
19
|
if theme.post.meta.date
|
20
20
|
span.post-meta-date(title=_p('post.posted') + ' ' + full_date(page.date))
|
21
|
-
i.post-meta-icon.solitude.fa-solid.fa-
|
21
|
+
i.post-meta-icon.solitude.fa-solid.fa-clock
|
22
22
|
time(datetime=date_xml(page.date))= date_xml(page.date)
|
23
23
|
if theme.post.meta.updated
|
24
24
|
span.post-meta-date(title=_p('post.updated') + ' ' + full_date(page.updated))
|
25
|
-
i.post-meta-icon.solitude.fa-solid.fa-
|
25
|
+
i.post-meta-icon.solitude.fa-solid.fa-arrows-rotate
|
26
26
|
time(datetime=date_xml(page.updated))= date_xml(page.updated)
|
27
27
|
if theme.wordcount
|
28
28
|
span.post-meta-wordcount
|
@@ -35,7 +35,7 @@
|
|
35
35
|
span= min2read(page.content) + " min"
|
36
36
|
if theme.post.meta.locate
|
37
37
|
span.post-meta-position(title=_p('post.ip') + page.locate)
|
38
|
-
i.post-meta-icon.solitude.
|
38
|
+
i.post-meta-icon.solitude.fas.fa-location-dot
|
39
39
|
span= page.locate
|
40
40
|
if theme.post.meta.pv
|
41
41
|
a.post-meta-pv(href=url_for(page.path), title=_p('post.pv'))
|
package/layout/page.pug
CHANGED
package/package.json
CHANGED
package/scripts/event/page.js
CHANGED
@@ -5,12 +5,12 @@ hexo.extend.filter.register('before_post_render', () => {
|
|
5
5
|
const logger = hexo.log;
|
6
6
|
const theme = hexo.theme.config;
|
7
7
|
if (theme.says.enable && !data.essay) {
|
8
|
-
logger.error('\n
|
8
|
+
logger.error('\n 启用即刻短文的情况下,请新建 essay.yaml。');
|
9
9
|
logger.error('\n If says is enabled, essay data must be supplied! \n Please create essay.yaml.');
|
10
10
|
process.exit(-1);
|
11
11
|
}
|
12
12
|
if (theme.footer.randomlink && !data.links){
|
13
|
-
logger.error('\n
|
13
|
+
logger.error('\n 启用随机链接的情况下,请新建 links.yaml。');
|
14
14
|
logger.error('\n If randomlink is enabled, links data must be supplied! \n Please create links.yaml.');
|
15
15
|
process.exit(-1);
|
16
16
|
}
|
@@ -20,4 +20,4 @@ hexo.extend.filter.register('before_post_render', () => {
|
|
20
20
|
process.exit(-1);
|
21
21
|
}
|
22
22
|
}
|
23
|
-
);
|
23
|
+
);
|
package/scripts/tags/article.js
CHANGED
@@ -7,33 +7,12 @@ const article = ([path]) => {
|
|
7
7
|
}
|
8
8
|
const tags = post.tags.map(tag => `<a class="article-meta__tags fancybox" href="${tag.path}" onclick="event.stopPropagation();"><span class="tags-punctuation"><i class="solitude fa-solid fa-hashtag"></i>${tag.name}</span></a>`).join('');
|
9
9
|
const category = post.categories.data.length > 0 ? `<span class="article-meta sticky-warp"><span class="original">${post.categories.data[0].name}</span></span>` : '';
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
</div>
|
17
|
-
<div class="recent-post-info">
|
18
|
-
<div class="recent-post-info-top">
|
19
|
-
<div class="recent-post-info-top-tips">
|
20
|
-
${category}
|
21
|
-
</div>
|
22
|
-
<a class="article-title fancybox" href="${post.path}" title="${post.title}">${post.title}</a>
|
23
|
-
</div>
|
24
|
-
<div class="content">
|
25
|
-
${post.description ? post.description : ''}
|
26
|
-
</div>
|
27
|
-
<div class="article-meta-wrap">
|
28
|
-
<span class="article-meta tags">
|
29
|
-
${tags}
|
30
|
-
</span>
|
31
|
-
<span class="post-meta-date">
|
32
|
-
<time datetime="${post.date}" style="display: inline;"></time>
|
33
|
-
</span>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>`;
|
10
|
+
const postCover = `<div class="post_cover"><a href="${'/' + post.path}" class="fancybox" title="${post.title}"><img class="post_bg" src="${post.cover}" alt="${post.title}"></a></div>`;
|
11
|
+
const recentPostInfoTop = `<div class="recent-post-info-top"><div class="recent-post-info-top-tips">${category}</div><a class="article-title fancybox" href="${'/' + post.path}" title="${post.title}">${post.title}</a></div>`;
|
12
|
+
const content = `<div class="content">${post.description ? post.description : ''}</div>`;
|
13
|
+
const articleMetaWrap = `<div class="article-meta-wrap"><span class="article-meta tags">${tags}</span><span class="post-meta-date"><time datetime="${post.date}" style="display: inline;"></time></span></div>`;
|
14
|
+
const recentPostInfo = `<div class="recent-post-info">${recentPostInfoTop + content + articleMetaWrap}</div>`
|
15
|
+
return `<div class="recent-post-item" onclick="pjax.loadUrl('${'/' + post.path}')">${postCover + recentPostInfo}</div>`;
|
37
16
|
}
|
38
17
|
|
39
18
|
hexo.extend.tag.register('article', article)
|
package/scripts/tags/tabs.js
CHANGED
@@ -14,9 +14,7 @@ function postTabs ([name, active], content) {
|
|
14
14
|
let tabNav = ''
|
15
15
|
let tabContent = ''
|
16
16
|
|
17
|
-
|
18
|
-
active = 0
|
19
|
-
}
|
17
|
+
active = Number(active) || 0
|
20
18
|
|
21
19
|
while ((match = tabBlock.exec(content)) !== null) {
|
22
20
|
matches.push(match[1])
|
@@ -55,7 +55,9 @@
|
|
55
55
|
|
56
56
|
#post-comment
|
57
57
|
.post &
|
58
|
-
padding 0 2rem
|
58
|
+
padding 0 2rem .5rem
|
59
|
+
+maxWidth768()
|
60
|
+
padding 0 .5rem .5rem
|
59
61
|
> div.comment-head
|
60
62
|
> div.comment-privacy
|
61
63
|
display block
|
@@ -75,7 +77,7 @@
|
|
75
77
|
font-size .6rem
|
76
78
|
color var(--efu-secondtext)
|
77
79
|
border-radius 8px
|
78
|
-
if
|
80
|
+
if hexo-config('comment.use')[1] || ',' in hexo-config('comment.use')
|
79
81
|
&.move
|
80
82
|
if hexo-config('comment.count')
|
81
83
|
.comment-head
|
@@ -101,7 +103,7 @@
|
|
101
103
|
margin .5rem 0
|
102
104
|
position relative
|
103
105
|
|
104
|
-
if
|
106
|
+
if hexo-config('comment.use')[1] || ',' in hexo-config('comment.use')
|
105
107
|
.count span:last-child
|
106
108
|
display none
|
107
109
|
|
@@ -137,7 +139,7 @@
|
|
137
139
|
content ''
|
138
140
|
transition .4s
|
139
141
|
|
140
|
-
if
|
142
|
+
if hexo-config('comment.use')[1] || index(hexo-config('comment.use'), ',')
|
141
143
|
.comment-wrap
|
142
144
|
> div:last-child
|
143
145
|
display none
|
@@ -165,4 +167,4 @@ if hexo-config('twikoo.style') && 'Twikoo' in hexo-config('comment.use')
|
|
165
167
|
@import 'twikoo.styl'
|
166
168
|
|
167
169
|
if hexo-config('valine.style') && 'Valine' in hexo-config('comment.use')
|
168
|
-
@import 'valine.styl'
|
170
|
+
@import 'valine.styl'
|
@@ -301,6 +301,9 @@
|
|
301
301
|
font-size .5rem
|
302
302
|
color var(--efu-secondtext)
|
303
303
|
|
304
|
+
.tk-content
|
305
|
+
margin-top 0!important
|
306
|
+
|
304
307
|
.tk-meta-input
|
305
308
|
.el-input
|
306
309
|
.el-input-group__prepend
|
@@ -408,10 +411,6 @@ button.el-button.tk-cancel.el-button--default.el-button--small
|
|
408
411
|
border-radius 8px !important
|
409
412
|
color var(--efu-fontcolor) !important
|
410
413
|
|
411
|
-
.tk-replies .tk-content span:first-child
|
412
|
-
font-size inherit
|
413
|
-
color black
|
414
|
-
|
415
414
|
.OwO
|
416
415
|
&.OwO-open
|
417
416
|
.OwO-body
|
@@ -744,32 +744,6 @@ if hexo-config('aside.card.style') == 2
|
|
744
744
|
border var(--style-border-always)
|
745
745
|
|
746
746
|
#aside-content
|
747
|
-
.card-webinfo
|
748
|
-
.webinfo
|
749
|
-
.webinfo-item-title
|
750
|
-
display flex
|
751
|
-
|
752
|
-
i
|
753
|
-
line-height: 2 !important
|
754
|
-
margin-right: 6px
|
755
|
-
width: 16px
|
756
|
-
text-align: center
|
757
|
-
font-size: 16px !important
|
758
|
-
|
759
|
-
.webinfo-item
|
760
|
-
display flex
|
761
|
-
justify-content space-between
|
762
|
-
white-space nowrap
|
763
|
-
-webkit-box-align center
|
764
|
-
align-items center
|
765
|
-
padding .1rem .5rem 0
|
766
|
-
|
767
|
-
div:first-child
|
768
|
-
-webkit-box-flex 1
|
769
|
-
flex 1 1 0
|
770
|
-
padding-right 1rem
|
771
|
-
|
772
|
-
|
773
747
|
.card-allinfo
|
774
748
|
|
775
749
|
hr
|
@@ -1098,3 +1072,27 @@ if hexo-config('aside.newest_comment.enable')
|
|
1098
1072
|
font-size 12px
|
1099
1073
|
color var(--efu-secondtext)
|
1100
1074
|
margin-top auto
|
1075
|
+
|
1076
|
+
.webinfo-item
|
1077
|
+
display flex
|
1078
|
+
justify-content space-between
|
1079
|
+
white-space nowrap
|
1080
|
+
-webkit-box-align center
|
1081
|
+
align-items center
|
1082
|
+
padding .1rem .5rem 0
|
1083
|
+
|
1084
|
+
div:first-child
|
1085
|
+
-webkit-box-flex 1
|
1086
|
+
flex 1 1 0
|
1087
|
+
padding-right 1rem
|
1088
|
+
|
1089
|
+
.webinfo
|
1090
|
+
.webinfo-item-title
|
1091
|
+
display flex
|
1092
|
+
|
1093
|
+
i
|
1094
|
+
line-height: 2
|
1095
|
+
margin-right: 6px
|
1096
|
+
width: 16px
|
1097
|
+
text-align: center
|
1098
|
+
font-size: 16px
|
@@ -7,7 +7,7 @@
|
|
7
7
|
background linear-gradient(120deg, #5b27ff 0, #00d4ff 100%)
|
8
8
|
background-size 200%
|
9
9
|
animation gradient 15s ease infinite
|
10
|
-
|
10
|
+
flex 4
|
11
11
|
|
12
12
|
.title1
|
13
13
|
opacity .8
|
@@ -28,7 +28,7 @@
|
|
28
28
|
justify-content center
|
29
29
|
align-items flex-start
|
30
30
|
flex-direction column
|
31
|
-
|
31
|
+
flex 3
|
32
32
|
|
33
33
|
h2
|
34
34
|
margin-right auto
|
@@ -3,7 +3,6 @@
|
|
3
3
|
min-height 300px
|
4
4
|
overflow hidden
|
5
5
|
color var(--efu-white)
|
6
|
-
width 59%
|
7
6
|
|
8
7
|
&::after
|
9
8
|
box-shadow 0 -69px 203px 11px #04120f inset
|
@@ -26,7 +25,6 @@
|
|
26
25
|
padding 1rem 2rem
|
27
26
|
|
28
27
|
.author-content-item.game-jl
|
29
|
-
width 39%
|
30
28
|
min-height 300px
|
31
29
|
overflow hidden
|
32
30
|
color var(--efu-white)
|
@@ -156,6 +156,7 @@ div#banners
|
|
156
156
|
|
157
157
|
+maxWidth768()
|
158
158
|
margin-top 0
|
159
|
+
flex-direction column
|
159
160
|
|
160
161
|
.author-content-item
|
161
162
|
+maxWidth1300()
|
@@ -172,7 +173,7 @@ div#banners
|
|
172
173
|
margin-top 0
|
173
174
|
|
174
175
|
.author-content-item
|
175
|
-
|
176
|
+
flex 4
|
176
177
|
border-radius 12px
|
177
178
|
background var(--efu-card-bg)
|
178
179
|
border var(--style-border-always)
|
package/source/js/main.js
CHANGED
@@ -154,10 +154,10 @@ const sco = {
|
|
154
154
|
$console.classList.toggle("on", this.musicPlaying);
|
155
155
|
if (this.musicPlaying) {
|
156
156
|
$meting.aplayer.play();
|
157
|
-
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude
|
157
|
+
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude fas fa-pause')
|
158
158
|
} else {
|
159
159
|
$meting.aplayer.pause();
|
160
|
-
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude
|
160
|
+
(typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude fas fa-play')
|
161
161
|
}
|
162
162
|
},
|
163
163
|
switchCommentBarrage() {
|
package/source/js/right_menu.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
let selectTextNow = "";
|
2
|
+
let firstShowRightMenu = true;
|
2
3
|
const selectText = () => {
|
3
4
|
selectTextNow = document.selection
|
4
5
|
? document.selection.createRange().text
|
@@ -106,9 +107,18 @@ function stopMaskScroll() {
|
|
106
107
|
|
107
108
|
window.oncontextmenu = (ele) => {
|
108
109
|
if (document.body.clientWidth <= 768) return;
|
110
|
+
if (GLOBAL_CONFIG.right_menu.ctrlOriginalMenu) {
|
111
|
+
if (firstShowRightMenu) {
|
112
|
+
firstShowRightMenu = false;
|
113
|
+
utils.snackbarShow(GLOBAL_CONFIG.right_menu.ctrlOriginalMenu, false, 2000);
|
114
|
+
}
|
115
|
+
if (ele.ctrlKey) {
|
116
|
+
return true;
|
117
|
+
}
|
118
|
+
}
|
109
119
|
let x = ele.clientX + 10;
|
110
120
|
let y = ele.clientY;
|
111
|
-
Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "
|
121
|
+
Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "flex"));
|
112
122
|
rm.globalEvent = ele;
|
113
123
|
|
114
124
|
let display = false;
|
@@ -117,9 +127,9 @@ window.oncontextmenu = (ele) => {
|
|
117
127
|
|
118
128
|
if (selectTextNow && window.getSelection()) {
|
119
129
|
display = true;
|
120
|
-
rm.menuItems.copy.style.display = "
|
121
|
-
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "
|
122
|
-
rm.menuItems.search && (rm.menuItems.search.style.display = "
|
130
|
+
rm.menuItems.copy.style.display = "flex";
|
131
|
+
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "flex");
|
132
|
+
rm.menuItems.search && (rm.menuItems.search.style.display = "flex");
|
123
133
|
} else {
|
124
134
|
rm.menuItems.copy.style.display = "none";
|
125
135
|
GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "none");
|
@@ -128,8 +138,8 @@ window.oncontextmenu = (ele) => {
|
|
128
138
|
|
129
139
|
if (link) {
|
130
140
|
display = true;
|
131
|
-
rm.menuItems.new.style.display = "
|
132
|
-
rm.menuItems.copyLink.style.display = "
|
141
|
+
rm.menuItems.new.style.display = "flex";
|
142
|
+
rm.menuItems.copyLink.style.display = "flex";
|
133
143
|
rm.domhref = link;
|
134
144
|
} else {
|
135
145
|
rm.menuItems.new.style.display = "none";
|
@@ -138,8 +148,8 @@ window.oncontextmenu = (ele) => {
|
|
138
148
|
|
139
149
|
if (src) {
|
140
150
|
display = true;
|
141
|
-
rm.menuItems.copyImg.style.display = "
|
142
|
-
rm.menuItems.downloadImg.style.display = "
|
151
|
+
rm.menuItems.copyImg.style.display = "flex";
|
152
|
+
rm.menuItems.downloadImg.style.display = "flex";
|
143
153
|
rm.domsrc = src;
|
144
154
|
} else {
|
145
155
|
rm.menuItems.copyImg.style.display = "none";
|
@@ -149,14 +159,14 @@ window.oncontextmenu = (ele) => {
|
|
149
159
|
let tagName = ele.target.tagName.toLowerCase();
|
150
160
|
if (tagName === "input" || tagName === "textarea") {
|
151
161
|
display = true;
|
152
|
-
rm.menuItems.paste.style.display = "
|
162
|
+
rm.menuItems.paste.style.display = "flex";
|
153
163
|
} else {
|
154
164
|
rm.menuItems.paste.style.display = "none";
|
155
165
|
}
|
156
166
|
|
157
167
|
if (tagName === "meting-js") {
|
158
168
|
display = true;
|
159
|
-
rm.menuItems.music.forEach((item) => (item.style.display = "
|
169
|
+
rm.menuItems.music.forEach((item) => (item.style.display = "flex"));
|
160
170
|
} else {
|
161
171
|
rm.menuItems.music[0] &&
|
162
172
|
rm.menuItems.music.forEach((item) => (item.style.display = "none"));
|
File without changes
|