hexo-theme-solitude 2.1.3 → 2.1.5

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.
Files changed (39) hide show
  1. package/README.md +25 -39
  2. package/{README_zh-Hans.md → README_en-US.md} +25 -39
  3. package/README_zh-Hant.md +5 -19
  4. package/_config.yml +28 -28
  5. package/languages/default.yml +2 -0
  6. package/languages/en.yml +2 -0
  7. package/languages/zh-CN.yml +2 -0
  8. package/languages/zh-TW.yml +2 -0
  9. package/layout/includes/footer.pug +30 -29
  10. package/layout/includes/head/config.pug +2 -1
  11. package/layout/includes/keyboard.pug +2 -1
  12. package/layout/includes/widgets/aside/asideInfoCard.pug +2 -2
  13. package/layout/includes/widgets/home/topGroup.pug +15 -13
  14. package/layout/includes/widgets/rightside/hide.pug +4 -1
  15. package/layout/includes/widgets/rightside/show.pug +3 -0
  16. package/layout/includes/widgets/third-party/music.pug +3 -3
  17. package/layout/includes/widgets/third-party/search/algolia-search.pug +3 -0
  18. package/layout/post.pug +2 -1
  19. package/package.json +1 -1
  20. package/plugins.yml +7 -7
  21. package/scripts/event/merge_config.js +1 -0
  22. package/scripts/event/page.js +3 -3
  23. package/scripts/filter/default.js +3 -1
  24. package/scripts/tags/typeit.js +2 -3
  25. package/source/css/_global/function.styl +4 -0
  26. package/source/css/_global/index.styl +8 -0
  27. package/source/css/_layout/aside.styl +2 -2
  28. package/source/css/_layout/capsule.styl +228 -217
  29. package/source/css/_page/_home/category-bar.styl +1 -0
  30. package/source/css/_page/_home/home.styl +5 -0
  31. package/source/css/_page/links.styl +16 -2
  32. package/source/css/_post/pagination.styl +1 -1
  33. package/source/css/_search/algolia-search.styl +23 -16
  34. package/source/css/_search/local-search.styl +11 -11
  35. package/source/css/_tags/gallery.styl +0 -1
  36. package/source/js/main.js +42 -13
  37. package/source/js/right_menu.js +2 -2
  38. package/source/js/search/algolia.js +16 -15
  39. package/source/js/search/local.js +11 -14
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- English丨[简体中文](README_zh-Hans.md)[繁体中文](README_zh-Hant.md)
1
+ [English](README_en-US.md)丨简体中文丨[繁体中文](README_zh-Hant.md)
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1>Solitude</h1>
5
+ <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
6
6
 
7
- An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple commenting systems.
7
+ 一款优雅的 Hexo 主题,支持懒加载、PWALatex 以及多种评论系统。
8
8
 
9
- Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
9
+ 主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
10
10
 
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
12
12
  ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531&style=for-the-badge)
@@ -16,11 +16,11 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
16
16
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
17
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&base=12345&style=for-the-badge)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [Docs](https://solitude.js.org/)丨[Preview](https://solitude.js.org/preview/)丨[Author](https://blog.everfu.cn/)
23
+ [文档](https://solitude.js.org/)丨[预览](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
@@ -30,57 +30,43 @@ English丨[简体中文](README_zh-Hans.md)丨[繁体中文](README_zh-Hant.md)
30
30
 
31
31
  </div>
32
32
 
33
- ## Features
33
+ ## 特性
34
34
 
35
- - Page lazy loading (Pjax), image lazy loading (LazyLoad), offline application (PWA)
36
- - Comments (Twikoo, Waline, Valine, Artalk, Giscus), supporting dual comments
37
- - Day and night mode switch (ColorMode)
38
- - Lightbox (medium-zoom, fancybox)
39
- - Mathematical formulas (Latex)
40
- - Special pages: Moments, My Equipment, Online Tools, Music Library, Friends' Links, Photo Album, Douban Page, Danmaku Message Board
41
- - Article features: AI Summary, Code Highlighting
35
+ - 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA
36
+ - 评论(TwikooWalineValineArtalkGiscus),支持双评论
37
+ - 昼夜切换(ColorMode)
38
+ - 灯箱(medium-zoomfancybox)
39
+ - 数学公式(Latex)
40
+ - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页、弹幕留言页
41
+ - 文章功能:AI 摘要、代码高亮
42
42
 
43
43
  ## Todo
44
44
 
45
- - [X] Mobile directory support.
46
- - [X] Add a bottom right sidebar.
45
+ - [x] 移动端目录支持
46
+ - [x] 增加右下角侧边栏
47
47
 
48
- > If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
48
+ > 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
49
49
 
50
- ## Setup
50
+ ## 应用
51
51
 
52
- 1. Use the NPM package
52
+ 1. 使用 NPM 包进行安装
53
53
  ```bash
54
54
  npm i hexo-theme-solitude
55
55
  ```
56
- 2. Apply
56
+ 2. 应用主题
57
57
  ```yaml
58
58
  theme: solitude
59
59
  ```
60
60
 
61
- Check out the [Documentation](https://solitude.js.org/) for more information.
61
+ 前往 [文档](https://solitude.js.org/) 获取更多信息。
62
62
 
63
- ## Sponsors
64
-
65
- <div align="center">
66
-
67
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W1YSMOK)
68
-
69
- </div>
70
-
71
- <p align="center">
72
- <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
73
- <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="sponsor"/>
74
- </a>
75
- </p>
76
-
77
- ## Community
63
+ ## 社区
78
64
 
79
65
  [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
80
- [![QQ Group](https://img.shields.io/badge/QQ%20Group-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
66
+ [![QQ ](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
81
67
 
82
- ## License
68
+ ## 版权
83
69
 
84
- [MIT](./LICENSE) License &copy; 2023-PRESENT [一小只托尼](https://github.com/everfu)
70
+ [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
85
71
 
86
72
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
@@ -1,12 +1,12 @@
1
- [English](README.md)丨简体中文丨[繁体中文](README_zh-Hant.md)
1
+ English丨[简体中文](README.md)[繁体中文](README_zh-Hant.md)
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1>Solitude</h1>
5
+ <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
6
6
 
7
- 一款优雅的 Hexo 主题,支持懒加载、PWALatex 以及多种评论系统。
7
+ An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple commenting systems.
8
8
 
9
- 主题设计由 [@张洪Heo](https://github.com/zhheo) 全权授权
9
+ Theme design is fully licensed by [@张洪Heo](https://github.com/zhheo).
10
10
 
11
11
  ![npm package](https://img.shields.io/npm/v/hexo-theme-solitude?style=for-the-badge)
12
12
  ![license](https://img.shields.io/github/license/everfu/hexo-theme-solitude?color=FF5531&style=for-the-badge)
@@ -16,11 +16,11 @@
16
16
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
17
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&base=12345&style=for-the-badge)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [文档](https://solitude.js.org/)丨[预览](https://solitude.js.org/preview/zh/)丨[作者](https://blog.everfu.cn/)
23
+ [Docs](https://solitude.js.org/)丨[Preview](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
@@ -30,57 +30,43 @@
30
30
 
31
31
  </div>
32
32
 
33
- ## 特性
33
+ ## Features
34
34
 
35
- - 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA
36
- - 评论(TwikooWalineValineArtalkGiscus),支持双评论
37
- - 昼夜切换(ColorMode)
38
- - 灯箱(medium-zoomfancybox)
39
- - 数学公式(Latex)
40
- - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页、弹幕留言页
41
- - 文章功能:AI 摘要、代码高亮
35
+ - Page lazy loading (Pjax), image lazy loading (LazyLoad), offline application (PWA)
36
+ - Comments (Twikoo, Waline, Valine, Artalk, Giscus), supporting dual comments
37
+ - Day and night mode switch (ColorMode)
38
+ - Lightbox (medium-zoom, fancybox)
39
+ - Mathematical formulas (Latex)
40
+ - Special pages: Moments, My Equipment, Online Tools, Music Library, Friends' Links, Photo Album, Douban Page, Danmaku Message Board
41
+ - Article features: AI Summary, Code Highlighting
42
42
 
43
43
  ## Todo
44
44
 
45
- - [x] 移动端目录支持
46
- - [x] 增加右下角侧边栏
45
+ - [X] Mobile directory support.
46
+ - [X] Add a bottom right sidebar.
47
47
 
48
- > 如有问题请提 [issue](https://github.com/everfu/hexo-theme-solitude/issues)
48
+ > If you have any questions, please issue an [issue](https://github.com/everfu/hexo-theme-solitude/issues)
49
49
 
50
- ## 应用
50
+ ## Setup
51
51
 
52
- 1. 使用 NPM 包进行安装
52
+ 1. Use the NPM package
53
53
  ```bash
54
54
  npm i hexo-theme-solitude
55
55
  ```
56
- 2. 应用主题
56
+ 2. Apply
57
57
  ```yaml
58
58
  theme: solitude
59
59
  ```
60
60
 
61
- 前往 [文档](https://solitude.js.org/) 获取更多信息。
61
+ Check out the [Documentation](https://solitude.js.org/) for more information.
62
62
 
63
- ## 赞助者
64
-
65
- <div align="center">
66
-
67
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W1YSMOK)
68
-
69
- </div>
70
-
71
- <p align="center">
72
- <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
73
- <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="赞助者"/>
74
- </a>
75
- </p>
76
-
77
- ## 社区
63
+ ## Community
78
64
 
79
65
  [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
80
- [![QQ ](https://img.shields.io/badge/QQ%20群-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
66
+ [![QQ Group](https://img.shields.io/badge/QQ%20Group-948375336-FFD700?logo=Tencent-QQ&logoColor=white&style=for-the-badge)](https://qm.qq.com/q/mxfomMvJPG)
81
67
 
82
- ## 版权
68
+ ## License
83
69
 
84
- [MIT](./LICENSE) License &copy; 2023-至今 [一小只托尼](https://github.com/efuo)
70
+ [MIT](./LICENSE) License &copy; 2023-PRESENT [伍十七](https://github.com/everfu)
85
71
 
86
72
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
package/README_zh-Hant.md CHANGED
@@ -1,8 +1,8 @@
1
- [English](README.md)丨[简体中文](README_zh-Hans.md)丨繁体中文
1
+ [English](README_en-US.md)丨[简体中文](README.md)丨繁体中文
2
2
 
3
3
  <div align="center">
4
4
 
5
- <h1>Solitude</h1>
5
+ <h1 style="background: linear-gradient(to right, #76CBEC, #F7A137); -webkit-background-clip: text; color: transparent; font-size: 4.4rem">Solitude</h1>
6
6
 
7
7
  一款優雅的 Hexo 主題,支援懶載入、PWA、Latex 以及多種評論系統。
8
8
 
@@ -16,11 +16,11 @@
16
16
  ![hexo version](https://img.shields.io/badge/hexo-7.0.0+-blue?logo=hexo&logoColor=white&style=for-the-badge)
17
17
  ![node version](https://img.shields.io/badge/node-14.0.0+-white?logo=node.js&logoColor=white&style=for-the-badge)
18
18
 
19
- ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&base=12345&style=for-the-badge)
19
+ ![page view](https://komarev.com/ghpvc/?username=hexo-theme-solitude&abbreviated=true&style=for-the-badge)
20
20
  [![discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
21
21
  ![JetBrains](https://img.shields.io/badge/jetbrains-support-black?logo=jetbrains&style=for-the-badge)
22
22
 
23
- [文档](https://solitude.js.org/)丨[預覽](https://solitude.js.org/preview/zh/)丨[作者](https://blog.everfu.cn/)
23
+ [文档](https://solitude.js.org/)丨[預覽](https://blog.everfu.cn/)
24
24
 
25
25
  </div>
26
26
 
@@ -58,20 +58,6 @@
58
58
 
59
59
  前往 [文檔](https://solitude.js.org/) 獲取更多資訊。
60
60
 
61
- ## 贊助者
62
-
63
- <div align="center">
64
-
65
- [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W7W1YSMOK)
66
-
67
- </div>
68
-
69
- <p align="center">
70
- <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
71
- <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
72
- </a>
73
- </p>
74
-
75
61
  ## 社區
76
62
 
77
63
  [![Discord](https://img.shields.io/discord/1266610921942548553?style=for-the-badge&logo=discord&label=discord&logoColor=white)](https://discord.gg/HZXAnK4Sut)
@@ -79,6 +65,6 @@
79
65
 
80
66
  ## 版權
81
67
 
82
- [MIT](./LICENSE) License &copy; 2023-至今 [一小只托尼](https://github.com/everfu)
68
+ [MIT](./LICENSE) License &copy; 2023-至今 [伍十七](https://github.com/everfu)
83
69
 
84
70
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
package/_config.yml CHANGED
@@ -37,30 +37,29 @@ nav:
37
37
  # Menu
38
38
  # 菜单
39
39
  menu:
40
- # Home: / # name: link
41
- # Article: # name
42
- # Archives: /archives/ || fas fa-folder-closed # item name: link || icon
43
- # Categories: /categories/ || fas fa-clone
44
- # Tags: /tags/ || fas fa-tags
45
- # Friends:
46
- # Moments: /moments/ || fas fa-wifi
47
- # Links: /links/ || fas fa-user-group
48
- # Treasure: javascript:travelling() || fas fa-gift
49
- # Myself:
50
- # Equipment: /equipment/ || fas fa-laptop
51
- # Toobox: /tlink/ || fas fa-toolbox
52
- # Music: /music/ || fas fa-music
53
- # About: /about/
40
+ # 首页: / # name: link
41
+ # 文库: # name
42
+ # 全部文章: /archives/ || fas fa-folder-closed # item name: link || icon
43
+ # 全部分类: /categories/ || fas fa-clone
44
+ # 全部标签: /tags/ || fas fa-tags
45
+ # 友链:
46
+ # 朋友圈: /moments/ || fas fa-wifi
47
+ # 友情链接: /links/ || fas fa-user-group
48
+ # 宝藏博主: javascript:travelling() || fas fa-gift
49
+ # 关于:
50
+ # 我的装备: /equipment/ || fas fa-laptop
51
+ # 在线工具: /tlink/ || fas fa-toolbox
52
+ # 音乐馆: /music/ || fas fa-music
54
53
 
55
54
  # Right button
56
55
  # 右侧按钮
57
56
  right:
58
57
  random: false # Random article / 随机文章按钮
59
58
  custom:
60
- # - name: Start # name
61
- # url: https://www.travellings.cn/go.html # Jump link
62
- # icon: fas fa-train # Icon
63
- # onclick: # Click event
59
+ # - name: 开往 # 名字
60
+ # url: https://www.travellings.cn/go.html # 跳转链接
61
+ # icon: fas fa-train # 图标
62
+ # onclick: # 点击事件
64
63
  # id: travellings_button # id
65
64
  # --------------------------- end ---------------------------
66
65
 
@@ -70,8 +69,8 @@ nav:
70
69
  hometop:
71
70
  enable: false
72
71
  banner:
73
- title: # Tranquility <br>and love life / 宁静致远 <br> 热爱生活 # Title
74
- url: Hexo Theme Solitude
72
+ title: # 宁静致远 <br> 热爱生活 # 标题
73
+ url: Hexo Theme Solitude # 小字
75
74
  icon:
76
75
  # HTML: # name
77
76
  # img: https://i.postimg.cc/vBWVnY8q/html.png # url
@@ -143,17 +142,17 @@ aside:
143
142
  # Style 2 is invalid
144
143
  # Style 2 无效
145
144
  sayhello:
146
- morning: ✨ Good morning. It's a new day
147
- noon: It's time for a midday break
148
- afternoon: Tea time. 🍵
149
- night: early bedtime
150
- goodnight: Good night 😴
145
+ morning: ✨ 早上好,新的一天开始了
146
+ noon: 🍲 午餐时间
147
+ afternoon: 🌞 下午好
148
+ night: 早点休息
149
+ goodnight: 晚安 😴
151
150
  # Style 2 is invalid, Triggered when sayhello is clicked.
152
151
  # Style 2 无效, 点击 sayhello 时触发
153
152
  sayhello2:
154
- # - You'll make it.
155
- # - You're gonna make it.
156
- # - Good luck, stranger.
153
+ # - 你可以的
154
+ # - 你一定可以的
155
+ # - 祝你好运,陌生人
157
156
  # social
158
157
  # 社交信息图标
159
158
  information:
@@ -613,6 +612,7 @@ capsule:
613
612
  server: netease
614
613
  # 类型:playlist / song
615
614
  type: playlist
615
+ volume: 0.8
616
616
  # --------------------------- end ---------------------------
617
617
 
618
618
  # --------------------------- start ---------------------------
@@ -96,6 +96,7 @@ search:
96
96
  hit: Found ${query} results for you
97
97
  placeholder: Enter keywords to search
98
98
  count: Total <b>${count}</b> results.
99
+ load: Loading...
99
100
 
100
101
  head:
101
102
  noscript: Please enable JavaScript to view the site
@@ -240,6 +241,7 @@ rightside:
240
241
  toc: Toc
241
242
  comment: Comment
242
243
  top: Top
244
+ barrage: 弹
243
245
  hide:
244
246
  translate: 简繁转换
245
247
  mode: Mode
package/languages/en.yml CHANGED
@@ -96,6 +96,7 @@ search:
96
96
  hit: Found ${query} results for you
97
97
  placeholder: Enter keywords to search
98
98
  count: Total <b>${count}</b> results.
99
+ load: Loading...
99
100
 
100
101
  head:
101
102
  noscript: Please enable JavaScript to view the site
@@ -241,6 +242,7 @@ rightside:
241
242
  toc: Toc
242
243
  comment: Comment
243
244
  top: Top
245
+ barrage: 弹
244
246
  hide:
245
247
  translate: 简繁转换
246
248
  mode: Mode
@@ -96,6 +96,7 @@ search:
96
96
  hit: 找到 ${hits} 条结果,用时 ${time} 毫秒
97
97
  placeholder: 输入关键词快速查找
98
98
  count: 共 <b>${count}</b> 条结果。
99
+ load: 搜索中...
99
100
 
100
101
  head:
101
102
  noscript: 开启JavaScript才能访问本站哦~
@@ -240,6 +241,7 @@ rightside:
240
241
  toc: 目录
241
242
  comment: 评论
242
243
  top: 返回顶部
244
+ barrage: 弹
243
245
  hide:
244
246
  translate: 简繁转换
245
247
  mode: 显示模式切换
@@ -96,6 +96,7 @@ search:
96
96
  hit: 找到 ${hits} 條結果,用時 ${time} 毫秒
97
97
  placeholder: 輸入關鍵詞快速查找
98
98
  count: 共 <b>${count}<b> 條結果。
99
+ load: 加載中...
99
100
 
100
101
  head:
101
102
  noscript: 開啟JavaScript才能訪問本站哦~
@@ -239,6 +240,7 @@ rightside:
239
240
  toc: 目錄
240
241
  comment: 評論
241
242
  top: 返回頂部
243
+ barrage: 彈
242
244
  hide:
243
245
  translate: 簡繁轉換
244
246
  mode: 顯示模式切換
@@ -12,39 +12,40 @@ if theme.post.footer.enable && is_post()
12
12
  div.footer-bar-description=theme.post.footer.desc
13
13
  if theme.post.footer.button.enable
14
14
  a.footer-bar-link(href=url_for(theme.post.footer.button.url))= theme.post.footer.button.name
15
- div#footer_deal
16
- - var leftInfo = information.left || []
17
- - var rightInfo = information.right || []
15
+ if information.left || information.right || information.author
16
+ div#footer_deal
17
+ - var leftInfo = information.left || []
18
+ - var rightInfo = information.right || []
18
19
 
19
- each value, label in leftInfo
20
- - var array = value.split('||')
21
- a.deal_link(href=url_for(trim(array[0])), title=label)
22
- i.solitude(class=array[1])
20
+ each value, label in leftInfo
21
+ - var array = value.split('||')
22
+ a.deal_link(href=url_for(trim(array[0])), title=label)
23
+ i.solitude(class=array[1])
23
24
 
24
- if information.author
25
- div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
26
- img(src=information.author, alt=_p('nav.backtop'))
25
+ if information.author
26
+ div#footer_mini_logo.nolazyload.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
27
+ img(src=information.author, alt=_p('nav.backtop'))
27
28
 
28
- each value, label in rightInfo
29
- - var array = value.split('||')
30
- a.deal_link(href=url_for(trim(array[0])), title=label)
31
- i.solitude(class=array[1])
32
- div#st-footer
29
+ each value, label in rightInfo
30
+ - var array = value.split('||')
31
+ a.deal_link(href=url_for(trim(array[0])), title=label)
32
+ i.solitude(class=array[1])
33
+ if group
34
+ div#st-footer
35
+ each value, x in group || []
36
+ div.footer-group
37
+ h3.footer-title= x
38
+ div.footer-links
39
+ each url, y in value
40
+ a.footer-item(href=url_for(url), title=y)= y
33
41
 
34
- each value, x in group || []
35
- div.footer-group
36
- h3.footer-title= x
37
- div.footer-links
38
- each url, y in value
39
- a.footer-item(href=url_for(url), title=y)= y
40
-
41
- if theme.footer && theme.footer.randomlink
42
- div.footer-group
43
- div.footer-title-group
44
- h3.footer-title= _p('footer.randomlink')
45
- button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
46
- i.solitude.fa-solid.fa-arrows-rotate
47
- div.footer-links#friend-links-in-footer
42
+ if theme.footer && theme.footer.randomlink
43
+ div.footer-group
44
+ div.footer-title-group
45
+ h3.footer-title= _p('footer.randomlink')
46
+ button.random-friends-btn(onclick='randomLinksList()', title=_p('footer.randomlink'))
47
+ i.solitude.fa-solid.fa-arrows-rotate
48
+ div.footer-links#friend-links-in-footer
48
49
  div#footer-bar
49
50
  div.footer-bar-links
50
51
  div.footer-bar-left
@@ -83,7 +83,8 @@
83
83
  empty: _p('search.empty'),
84
84
  hit: _p('search.hit'),
85
85
  placeholder: _p('search.placeholder'),
86
- count: _p('search.count')
86
+ count: _p('search.count'),
87
+ loading: _p('search.load'),
87
88
  }
88
89
  }
89
90
 
@@ -61,5 +61,6 @@ script.
61
61
  var sco_keyboards = localStorage.getItem('keyboard') === 'true'
62
62
  if (sco_keyboards) {
63
63
  openKeyboard();
64
- document.getElementById('consoleKeyboard').classList.add('on');
64
+ let keyboard = document.getElementById('consoleKeyboard');
65
+ keyboard?.classList.add('on');
65
66
  }
@@ -43,11 +43,11 @@
43
43
  a(href=url_for('/archives/') title=_p('aside.card.posts') + site.posts.length)
44
44
  .length-num= site.posts.length
45
45
  .headline= _p('page.archives')
46
- if site.tags.length !== 0 && theme.page.tags
46
+ if site.tags.length !== 0 || theme.page.tags
47
47
  a(href=url_for('/tags/') title=_p('aside.card.tags') + site.tags.length)
48
48
  .length-num= site.tags.length
49
49
  .headline= _p('page.tag')
50
- if site.categories.length !== 0 && theme.page.categories
50
+ if site.categories.length !== 0 || theme.page.categories
51
51
  a(href=url_for('/categories/') title=_p('aside.card.categories') + site.categories.length)
52
52
  .length-num= site.categories.length
53
53
  .headline= _p('page.category')
@@ -1,23 +1,25 @@
1
1
  - var filteredPosts = site.posts.data.filter(item => item.recommend === true).slice(0,6)
2
- .top-post-group
3
- each post in filteredPosts
4
- .top-post-item
5
- .post_cover
6
- a(href=url_for(post.path), title=post.title)
7
- span.top-post-top-text= _p('home.recommend')
8
- img.post_bg(alt=post.title, src=url_for(post.cover))
9
- .top-post-info
10
- a.article-title(href=url_for(post.path), title=post.title)= post.title
2
+ if filteredPosts.length > 0
3
+ .top-post-group
4
+ each post in filteredPosts
5
+ .top-post-item
6
+ .post_cover
7
+ a(href=url_for(post.path), title=post.title)
8
+ span.top-post-top-text= _p('home.recommend')
9
+ img.post_bg(alt=post.title, src=url_for(post.cover))
10
+ .top-post-info
11
+ a.article-title(href=url_for(post.path), title=post.title)= post.title
11
12
 
12
13
  mixin todayCardContent
13
14
  .todayCard-info
14
15
  .todayCard-tips= theme.hometop.recommendList.sup
15
16
  .todayCard-title= theme.hometop.recommendList.title
16
17
  .todayCard-cover.nolazyload(style=`background: url('${theme.hometop.recommendList.img}') no-repeat center /cover`)
17
- .banner-button-group
18
- a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
19
- i.solitude.fa-solid.fa-circle-plus
20
- span.banner-button-text= _p('home.recommendmore')
18
+ if filteredPosts.length > 0
19
+ .banner-button-group
20
+ a.banner-button(onclick="window.event.cancelBubble=true;sco.hideTodayCard();")
21
+ i.solitude.fa-solid.fa-circle-plus
22
+ span.banner-button-text= _p('home.recommendmore')
21
23
 
22
24
  case theme.hometop.recommendList.url.startsWith('/')
23
25
  when true
@@ -6,4 +6,7 @@
6
6
  i.fas.fa-circle-half-stroke
7
7
  if theme.rightside.hide.aside
8
8
  button.aside.pc(type='button' title=_p('rightside.hide.aside') onclick='sco.switchHideAside()')
9
- i.fas.fa-arrows-alt-h
9
+ i.fas.fa-arrows-alt-h
10
+ if theme.keyboard.enable
11
+ button.keyboard.pc(type='button' title=_p('console.switch_keyboard') onclick="sco.switchKeyboard()")
12
+ i.fas.fa-keyboard
@@ -8,6 +8,9 @@
8
8
  if page.comment
9
9
  button.comment(type='button' title=_p('rightside.show.comment') onclick="sco.scrollTo('post-comment')")
10
10
  i.fas.fa-comment
11
+ if theme.comment.commentBarrage && page.comment
12
+ button.barrage.pc(type='button' title=_p('rightside.show.barrage') onclick="sco.switchCommentBarrage()")
13
+ span= _p('rightside.show.barrage')
11
14
  button.top(type='button' title=_p('rightside.show.top') onclick='sco.toTop()')
12
15
  i.fas.fa-arrow-up
13
16
  span#percent= "0"
@@ -1,3 +1,3 @@
1
- div.needEndHide#nav-music(onclick="sco.musicToggle()")
2
- div#nav-music-hoverTips=__('music.hit')
3
- meting-js(id=theme.capsule.id, server=theme.capsule.server, type="playlist", mutex="true", preload="none", data-lrctype="0", order="random", theme="var(--efu-main)")
1
+ div.needEndHide#nav-music
2
+ #nav-music-hoverTips(onclick='sco.musicToggle()')= __('music.hit')
3
+ meting-js(id=theme.capsule.id server=theme.capsule.server type=theme.capsule.type mutex="true" preload="none" theme="var(--efu-main)" data-lrctype="0" order="random" volume=theme.capsule.volume)
@@ -2,6 +2,9 @@
2
2
  .search-dialog
3
3
  .algolia-navbar
4
4
  .search-dialog__title#algolia-search-title=__('nav.search')
5
+ .algolia-tips
6
+ i.solitude.fab.fa-algolia
7
+ span.algolia-tips-text='Algolia'
5
8
  span.search-close-button
6
9
  i.solitude.fa-solid.fa-xmark
7
10
  #algolia-input-panel
package/layout/post.pug CHANGED
@@ -31,4 +31,5 @@ block content
31
31
  if page.comment
32
32
  - var comment_js = true
33
33
  include includes/widgets/third-party/comments/comment
34
- include includes/widgets/aside/aside
34
+ if page.aside
35
+ include includes/widgets/aside/aside
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.3",
3
+ "version": "2.1.5",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {