hexo-theme-solitude 2.1.8 → 2.1.9
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/screenshot.avif +0 -0
- package/README.md +19 -30
- package/README_en-US.md +26 -37
- package/README_zh-Hant.md +27 -36
- package/_config.yml +1 -1
- package/package.json +1 -1
- package/source/css/_layout/article-container.styl +2 -2
- package/source/css/_page/music.styl +1 -0
- package/source/js/main.js +1 -1
- package/source/js/music.js +8 -3
- package/source/js/right_menu.js +6 -4
package/.github/screenshot.avif
CHANGED
Binary file
|
package/README.md
CHANGED
@@ -2,31 +2,22 @@
|
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
|
5
|
+
<img width="70%" src=".github/screenshot.avif" />
|
6
6
|
|
7
|
-
|
7
|
+
一款优雅的 Hexo 主题,支持懒加载、PWA、Latex 以及多种评论系统。
|
8
8
|
|
9
|
-
|
9
|
+
主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
|
10
10
|
|
11
|
-

|
12
|
+

|
13
|
+
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
14
|
+
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
15
15
|
|
16
|
-

|
17
|
+

|
18
18
|
|
19
|
-

|
22
|
-
|
23
|
-
[文档](https://solitude.js.org/)丨[预览](https://blog.everfu.cn/)
|
24
|
-
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div style="width: 80%; margin: 0 auto">
|
28
|
-
|
29
|
-

|
19
|
+

|
20
|
+

|
30
21
|
|
31
22
|
</div>
|
32
23
|
|
@@ -40,33 +31,31 @@
|
|
40
31
|
- 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页、弹幕留言页
|
41
32
|
- 文章功能:AI 摘要、代码高亮
|
42
33
|
|
43
|
-
## Todo
|
44
|
-
|
45
|
-
- [x] 移动端目录支持
|
46
|
-
- [x] 增加右下角侧边栏
|
47
|
-
|
48
34
|
> 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
49
35
|
|
50
36
|
## 应用
|
51
37
|
|
52
38
|
1. 使用 NPM 包进行安装
|
39
|
+
|
53
40
|
```bash
|
54
41
|
npm i hexo-theme-solitude
|
55
42
|
```
|
43
|
+
|
56
44
|
2. 应用主题
|
45
|
+
|
57
46
|
```yaml
|
58
47
|
theme: solitude
|
59
48
|
```
|
60
49
|
|
61
|
-
前往 [文档](https://solitude.js.org/) 获取更多信息。
|
50
|
+
前往 [文档](https://solitude.js.org/zh/) 获取更多信息。
|
62
51
|
|
63
52
|
## 社区
|
64
53
|
|
65
|
-
[](https://discord.gg/HZXAnK4Sut)
|
55
|
+
[](https://qm.qq.com/q/mxfomMvJPG)
|
67
56
|
|
68
57
|
## 版权
|
69
58
|
|
70
|
-
[
|
59
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
71
60
|
|
72
|
-
[
|
61
|
+
[MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
|
package/README_en-US.md
CHANGED
@@ -2,71 +2,60 @@ English丨[简体中文](README.md)丨[繁体中文](README_zh-Hant.md)
|
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
|
5
|
+
<img width="70%" src=".github/screenshot.avif" />
|
6
6
|
|
7
|
-
|
7
|
+
An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.
|
8
8
|
|
9
|
-
|
9
|
+
Theme design fully authorized by [@Zhang Hong Heo](https://github.com/zhheo)
|
10
10
|
|
11
|
-

|
12
|
+

|
13
|
+
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
14
|
+
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
15
15
|
|
16
|
-

|
17
|
+

|
18
18
|
|
19
|
-

|
22
|
-
|
23
|
-
[Docs](https://solitude.js.org/)丨[Preview](https://blog.everfu.cn/)
|
24
|
-
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div style="width: 80%; margin: 0 auto">
|
28
|
-
|
29
|
-

|
19
|
+

|
20
|
+

|
30
21
|
|
31
22
|
</div>
|
32
23
|
|
33
24
|
## Features
|
34
25
|
|
35
26
|
- Page lazy loading (Pjax), image lazy loading (LazyLoad), offline application (PWA)
|
36
|
-
- Comments (Twikoo, Waline, Valine, Artalk, Giscus),
|
37
|
-
- Day and night
|
27
|
+
- Comments (Twikoo, Waline, Valine, Artalk, Giscus), supports dual comments
|
28
|
+
- Day and night switch (ColorMode)
|
38
29
|
- Lightbox (medium-zoom, fancybox)
|
39
30
|
- Mathematical formulas (Latex)
|
40
|
-
-
|
41
|
-
- Article features: AI
|
42
|
-
|
43
|
-
## Todo
|
31
|
+
- Featured pages: Instant articles, My gear, Online tools, Music hall, Friend links, Album page, Douban page, Bullet screen message page
|
32
|
+
- Article features: AI summary, code highlighting
|
44
33
|
|
45
|
-
|
46
|
-
- [X] Add a bottom right sidebar.
|
34
|
+
> If you have any questions, please raise an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
47
35
|
|
48
|
-
|
36
|
+
## Application
|
49
37
|
|
50
|
-
|
38
|
+
1. Install using the NPM package
|
51
39
|
|
52
|
-
1. Use the NPM package
|
53
40
|
```bash
|
54
41
|
npm i hexo-theme-solitude
|
55
42
|
```
|
56
|
-
|
43
|
+
|
44
|
+
2. Apply the theme
|
45
|
+
|
57
46
|
```yaml
|
58
47
|
theme: solitude
|
59
48
|
```
|
60
49
|
|
61
|
-
|
50
|
+
Visit [Documentation](https://solitude.js.org/zh/) for more information.
|
62
51
|
|
63
52
|
## Community
|
64
53
|
|
65
|
-
[](https://discord.gg/HZXAnK4Sut)
|
55
|
+
[](https://qm.qq.com/q/mxfomMvJPG)
|
67
56
|
|
68
57
|
## License
|
69
58
|
|
70
|
-
[
|
59
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
71
60
|
|
72
|
-
[
|
61
|
+
[MIT](./LICENSE) License © 2023-present [everfu](https://github.com/everfu)
|
package/README_zh-Hant.md
CHANGED
@@ -2,69 +2,60 @@
|
|
2
2
|
|
3
3
|
<div align="center">
|
4
4
|
|
5
|
-
|
5
|
+
<img width="70%" src=".github/screenshot.avif" />
|
6
6
|
|
7
|
-
|
7
|
+
一款優雅的 Hexo 主題,支持懶加載、PWA、Latex 以及多種評論系統。
|
8
8
|
|
9
|
-
|
9
|
+
主題設計由 [@張洪Heo](https://github.com/zhheo) 全權授權
|
10
10
|
|
11
|
-

|
12
|
+

|
13
|
+
[](https://github.com/everfu/hexo-theme-solitude/stargazers)
|
14
|
+
[](https://www.npmjs.com/package/hexo-theme-solitude)
|
15
15
|
|
16
|
-

|
17
|
+

|
18
18
|
|
19
|
-

|
22
|
-
|
23
|
-
[文档](https://solitude.js.org/)丨[預覽](https://blog.everfu.cn/)
|
24
|
-
|
25
|
-
</div>
|
26
|
-
|
27
|
-
<div style="width: 80%; margin: 0 auto">
|
28
|
-
|
29
|
-

|
19
|
+

|
20
|
+

|
30
21
|
|
31
22
|
</div>
|
32
23
|
|
33
24
|
## 特性
|
34
25
|
|
35
|
-
-
|
36
|
-
- 評論(Twikoo、Waline、Valine、Artalk、Giscus)
|
37
|
-
-
|
38
|
-
-
|
39
|
-
-
|
40
|
-
-
|
41
|
-
- 文章功能:AI
|
42
|
-
|
43
|
-
## Todo
|
26
|
+
- 頁面懶加載(Pjax)、圖片懶加載(LazyLoad)、離線應用(PWA)
|
27
|
+
- 評論(Twikoo、Waline、Valine、Artalk、Giscus),支持雙評論
|
28
|
+
- 晝夜切換(ColorMode)
|
29
|
+
- 燈箱(medium-zoom、fancybox)
|
30
|
+
- 數學公式(Latex)
|
31
|
+
- 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁、彈幕留言頁
|
32
|
+
- 文章功能:AI 摘要、代碼高亮
|
44
33
|
|
45
|
-
|
46
|
-
- [x] 增加右下角側邊欄
|
34
|
+
> 如有問題請提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
|
47
35
|
|
48
36
|
## 應用
|
49
37
|
|
50
38
|
1. 使用 NPM 包進行安裝
|
39
|
+
|
51
40
|
```bash
|
52
41
|
npm i hexo-theme-solitude
|
53
42
|
```
|
43
|
+
|
54
44
|
2. 應用主題
|
45
|
+
|
55
46
|
```yaml
|
56
47
|
theme: solitude
|
57
48
|
```
|
58
49
|
|
59
|
-
前往 [文檔](https://solitude.js.org/)
|
50
|
+
前往 [文檔](https://solitude.js.org/zh/) 獲取更多信息。
|
60
51
|
|
61
52
|
## 社區
|
62
53
|
|
63
|
-
[](https://discord.gg/HZXAnK4Sut)
|
55
|
+
[](https://qm.qq.com/q/mxfomMvJPG)
|
65
56
|
|
66
57
|
## 版權
|
67
58
|
|
68
|
-
[
|
59
|
+
[](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
|
69
60
|
|
70
|
-
[
|
61
|
+
[MIT](./LICENSE) License © 2023-至今 [伍十七](https://github.com/everfu)
|
package/_config.yml
CHANGED
@@ -936,7 +936,7 @@ busuanzi_use: 0
|
|
936
936
|
|
937
937
|
# --------------------------- start ---------------------------
|
938
938
|
# This part is only supported in mainland China, and we will consider supporting ChatGPT Key in the future.
|
939
|
-
#
|
939
|
+
# 该部分仅支持中国大陆
|
940
940
|
tianli_talk:
|
941
941
|
enable: false
|
942
942
|
title: 智能客服与搜索 # title
|
package/package.json
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
.post &
|
8
8
|
padding 1rem 2rem
|
9
9
|
+maxWidth768()
|
10
|
-
padding .5rem
|
10
|
+
padding .5rem .5rem 1rem .5rem
|
11
11
|
|
12
12
|
iframe
|
13
13
|
border-radius 12px
|
@@ -66,7 +66,7 @@
|
|
66
66
|
font-size .9rem
|
67
67
|
line-height 1.7
|
68
68
|
font-weight 400
|
69
|
-
margin
|
69
|
+
margin .5rem 0
|
70
70
|
text-align left
|
71
71
|
letter-spacing .6px
|
72
72
|
|
package/source/js/main.js
CHANGED
package/source/js/music.js
CHANGED
@@ -16,9 +16,13 @@ class MusicPlayer {
|
|
16
16
|
addEventListeners() {
|
17
17
|
document.addEventListener("keydown", this.handleKeydown.bind(this));
|
18
18
|
const aplayerList = document.querySelector(".aplayer-list");
|
19
|
-
document.querySelector(".aplayer-lrc")
|
20
|
-
|
21
|
-
|
19
|
+
const aplayerLrc = document.querySelector(".aplayer-lrc");
|
20
|
+
if (aplayerLrc && !aplayerLrc.dataset.clickBound) {
|
21
|
+
aplayerLrc.addEventListener("click", () => {
|
22
|
+
aplayerList.classList.toggle("aplayer-list-hide");
|
23
|
+
});
|
24
|
+
aplayerLrc.dataset.clickBound = true;
|
25
|
+
}
|
22
26
|
}
|
23
27
|
|
24
28
|
changeMusicBg(isChangeBg = true) {
|
@@ -40,6 +44,7 @@ class MusicPlayer {
|
|
40
44
|
|
41
45
|
setLoadingScreen(loadingElement, backgroundElement) {
|
42
46
|
const timer = setInterval(() => {
|
47
|
+
this.addEventListeners();
|
43
48
|
const musicCover = document.querySelector("#Music-page .aplayer-pic");
|
44
49
|
if (musicCover) {
|
45
50
|
loadingElement.style.display = "none";
|
package/source/js/right_menu.js
CHANGED
@@ -135,10 +135,12 @@ window.oncontextmenu = (ele) => {
|
|
135
135
|
|
136
136
|
rm.menuItems.paste.style.display = (tagName === "input" || tagName === "textarea") ? "flex" : "none";
|
137
137
|
|
138
|
-
if (
|
139
|
-
|
140
|
-
|
141
|
-
|
138
|
+
if (GLOBAL_CONFIG.right_menu.music) {
|
139
|
+
if (cls.match(/aplayer/)) {
|
140
|
+
rm.menuItems.music.forEach(item => item.style.display = "flex");
|
141
|
+
} else {
|
142
|
+
rm.menuItems.music.forEach(item => item.style.display = "none");
|
143
|
+
}
|
142
144
|
}
|
143
145
|
|
144
146
|
Array.from(display ? rm.menuItems.other : rm.menuItems.plugin).forEach(item => item.style.display = "none");
|