hexo-theme-solitude 1.5.4 → 1.5.6

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 (61) hide show
  1. package/.github/ISSUE_TEMPLATE/bug_report.yml +7 -6
  2. package/.github/ISSUE_TEMPLATE/feature_request.yml +1 -1
  3. package/README.md +23 -23
  4. package/{README_EN.md → README_zh-cn.md} +23 -23
  5. package/README_zh-tw.md +2 -2
  6. package/_config.yml +0 -12
  7. package/languages/en.yml +9 -6
  8. package/languages/zh-CN.yml +9 -6
  9. package/languages/zh-TW.yml +9 -6
  10. package/layout/includes/head/config.pug +9 -6
  11. package/layout/includes/inject/body.pug +7 -6
  12. package/layout/includes/inject/head.pug +1 -1
  13. package/layout/includes/page/music.pug +2 -12
  14. package/layout/includes/widgets/page/about/personalities.pug +1 -1
  15. package/layout/includes/widgets/post/copyright.pug +0 -2
  16. package/layout/page.pug +0 -4
  17. package/package.json +1 -1
  18. package/plugins.yml +0 -4
  19. package/scripts/event/cdn.js +6 -1
  20. package/scripts/tags/button.js +1 -1
  21. package/scripts/tags/bvideo.js +2 -2
  22. package/scripts/tags/gallery.js +54 -0
  23. package/scripts/tags/image.js +1 -1
  24. package/scripts/tags/link.js +6 -3
  25. package/scripts/tags/note.js +6 -0
  26. package/source/css/_global/function.styl +4 -0
  27. package/source/css/_page/_gallery/index.styl +0 -66
  28. package/source/css/_page/_home/home-top.styl +1 -1
  29. package/source/css/_page/music.styl +9 -9
  30. package/source/css/_page/share.styl +2 -2
  31. package/source/css/_widgets/_post/content.styl +7 -0
  32. package/source/css/_widgets/_post/copyright.styl +0 -18
  33. package/source/css/_widgets/_tags/button.styl +29 -49
  34. package/source/css/_widgets/_tags/checkbox.styl +176 -57
  35. package/source/css/_widgets/_tags/fold.styl +65 -79
  36. package/source/css/_widgets/_tags/gallery.styl +67 -0
  37. package/source/css/_widgets/_tags/index.styl +32 -30
  38. package/source/css/_widgets/_tags/label.styl +4 -3
  39. package/source/css/_widgets/_tags/link.styl +48 -77
  40. package/source/css/_widgets/_tags/media.styl +57 -0
  41. package/source/css/_widgets/_tags/mermaid.styl +1 -2
  42. package/source/css/_widgets/_tags/note.styl +1 -7
  43. package/source/css/_widgets/_tags/span.styl +24 -51
  44. package/source/css/_widgets/_tags/tabs.styl +3 -1
  45. package/source/css/_widgets/index.styl +1 -1
  46. package/source/js/covercolor/api.js +16 -16
  47. package/source/js/covercolor/local.js +16 -16
  48. package/source/js/lately.min.js +6 -0
  49. package/source/js/main.js +2 -33
  50. package/source/js/music.js +91 -139
  51. package/source/js/utils.js +6 -0
  52. package/layout/includes/page/album.pug +0 -38
  53. package/layout/includes/page/gallery.pug +0 -11
  54. package/scripts/generator/gallery.js +0 -49
  55. package/scripts/tags/card.js +0 -9
  56. package/scripts/tags/u.js +0 -7
  57. package/source/css/_widgets/_tags/bvideo.styl +0 -8
  58. package/source/css/_widgets/_tags/card.styl +0 -52
  59. package/source/css/_widgets/_tags/image.styl +0 -10
  60. package/source/css/_widgets/_tags/inline-image.styl +0 -6
  61. /package/.github/workflows/{npm-publish-github-packages.yml → publish.yml} +0 -0
@@ -1,6 +1,7 @@
1
1
  name: Bug 报告 🐛
2
2
  description: 本项目仅对最新版本进行维护,使用老版本出现问题的,请先升级到最新版本或使用dev版本,升级完后如果发现bug依然存在,请继续填写此issue。
3
3
  labels: ['status: needs check']
4
+ title: "[Bug]: "
4
5
  body:
5
6
  - type: markdown
6
7
  attributes:
@@ -10,18 +11,18 @@ body:
10
11
  2. 查询主题使用文档的相关内容和正确配置
11
12
  3. 使用的是Solitude主题最新版本
12
13
  4. 执行`npm ls -dept 0`检查是否已安装对应插件
13
- 5. [FAQS](https://docs.wzsco.top/FAQ.html) 中无类似问题
14
+ 5. [FAQS](https://solitude-docs.efu.me/faq) 中无类似问题
14
15
  - type: checkboxes
15
16
  attributes:
16
17
  label: 前置确认
17
18
  options:
18
- - label: 我确认我运行的是最新版本的主题,并且安装了所需的依赖,在[FAQS](https://docs.wzsco.top/FAQ.html)中也未找到类似问题。
19
+ - label: 我确认我运行的是最新版本的主题,并且安装了所需的依赖,在[FAQS](https://solitude-docs.efu.me/faq)中也未找到类似问题。
19
20
  required: true
20
21
  - type: checkboxes
21
22
  attributes:
22
23
  label: ⚠️ 搜索issues中是否已存在类似问题
23
24
  description: >
24
- 请在 [历史issue](https://github.com/DuoSco/Hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
25
+ 请在 [历史issue](https://github.com/valor-x/hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
25
26
  或相关日志的关键词来查找是否存在类似问题。
26
27
  options:
27
28
  - label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
@@ -37,7 +38,7 @@ body:
37
38
  请选择你运行程序的操作系统类型。
38
39
  options:
39
40
  - Windows
40
- - MacOS
41
+ - Mac/Linux
41
42
  validations:
42
43
  required: true
43
44
  - type: dropdown
@@ -67,6 +68,7 @@ body:
67
68
  attributes:
68
69
  label: 问题描述 😯
69
70
  description: 详细描述出现的问题,或提供有关截图。
71
+ placeholder: "e.g., 我在...出现..."
70
72
  - type: textarea
71
73
  attributes:
72
74
  label: 终端日志 📒
@@ -103,5 +105,4 @@ body:
103
105
  at Array.reduce (<anonymous>)
104
106
  INFO Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
105
107
  </details>
106
- value: |
107
- <此处粘贴终端日志>
108
+ placeholder: "e.g., <此处粘贴终端日志>"
@@ -1,6 +1,6 @@
1
1
  name: 功能新增✨
2
2
  description: 为这个项目提出一个想法
3
- title: "[想法]: "
3
+ title: "[Feature]: "
4
4
  labels: ["增强"]
5
5
  body:
6
6
  - type: markdown
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
- 简体中文丨[繁体中文](README_zh-tw.md)丨[English](README_EN.md)
1
+ [简体中文](README_zh-cn.md)丨[繁体中文](README_zh-tw.md)丨English
2
2
 
3
3
  <div align="center">
4
4
 
5
5
  <img src=".github/logo.svg" alt="Solitude logo" height="200">
6
6
 
7
- <h1 align="center">Hexo Theme Solitude</h1>
7
+ <h1 align="center">Hexo Theme Solitude</h1>
8
8
 
9
- <p align="center">一款优雅的 Hexo 主题,支持懒加载、PWALatex以及多种评论系统。</p>
9
+ <p align="center">An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.</p>
10
10
 
11
11
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
12
12
  ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
@@ -15,47 +15,47 @@
15
15
  [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
16
16
  [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
17
17
 
18
- [预览](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
18
+ [Preview](https://solitude-demo.efu.me/) 丨 [Documentation](https://solitude-docs.efu.me/)
19
19
 
20
20
  </div>
21
21
 
22
22
  ![Screenshot](.github/screenshot.png)
23
23
 
24
- ## 特性
24
+ ## Features
25
25
 
26
- - 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA
27
- - 评论(Twikoo、Waline)
28
- - 显示切换(ColorMode)
29
- - 灯箱(medium-zoom、fancybox)
30
- - 数学公式(Latex)
31
- - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页
32
- - 文章功能:AI 摘要、代码高亮
26
+ - PjaxLazyLoadPWA
27
+ - Comments(Twikoo、Waline)
28
+ - ColorMode
29
+ - Lightbox(medium-zoom、fancybox)
30
+ - Mathematical formulas(Latex)
31
+ - Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page
32
+ - Article features: AI summary, code highlighting
33
33
 
34
34
  ## Todo
35
35
 
36
- - [x] Waline 评论支持
37
- - [ ] Tags plugin 插件化
38
- - [ ] 相册页重构
36
+ - [x] Support Waline
37
+ - [ ] Tags plugin
38
+ - [ ] Album reconstruction(Removed, to be refactored)
39
39
 
40
- ## 应用
40
+ ## Setup
41
41
 
42
- 1. 使用 NPM 包进行安装
42
+ 1. Use the NPM package
43
43
  ```bash
44
44
  npm i hexo-theme-solitude
45
45
  ```
46
- 2. 应用主题
46
+ 2. Apply
47
47
  ```yaml
48
48
  theme: solitude
49
49
  ```
50
-
51
- 前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。
52
50
 
53
- ## 贡献者
51
+ Check out the [Documentation](https://solitude-docs.efu.me/) for more information.
52
+
53
+ ## Contributors
54
54
 
55
55
  <a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
56
56
  <img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
57
57
  </a>
58
58
 
59
- **主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
59
+ **Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!**
60
60
 
61
- > 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
61
+ > You are welcome to contribute to this topic! [Contribution Guide](/CONTRIBUTING.md)
@@ -1,12 +1,12 @@
1
- [简体中文](README.md)丨[繁体中文](README_zh-tw.md)丨English
1
+ 简体中文丨[繁体中文](README_zh-tw.md)丨[English](README.md)
2
2
 
3
3
  <div align="center">
4
4
 
5
5
  <img src=".github/logo.svg" alt="Solitude logo" height="200">
6
6
 
7
- <h1 align="center">Hexo Theme Solitude</h1>
7
+ <h1 align="center">Hexo Theme Solitude</h1>
8
8
 
9
- <p align="center">An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.</p>
9
+ <p align="center">一款优雅的 Hexo 主题,支持懒加载、PWALatex以及多种评论系统。</p>
10
10
 
11
11
  ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
12
12
  ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
@@ -15,47 +15,47 @@
15
15
  [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
16
16
  [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
17
17
 
18
- [Preview](https://solitude-demo.efu.me/) 丨 [Documentation](https://solitude-docs.efu.me/)
18
+ [预览](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
19
19
 
20
20
  </div>
21
21
 
22
22
  ![Screenshot](.github/screenshot.png)
23
23
 
24
- ## Features
24
+ ## 特性
25
25
 
26
- - PjaxLazyLoadPWA
27
- - Comments(Twikoo、Waline)
28
- - ColorMode
29
- - Lightbox(medium-zoom、fancybox)
30
- - Mathematical formulas(Latex)
31
- - Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page
32
- - Article features: AI summary, code highlighting
26
+ - 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA
27
+ - 评论(Twikoo、Waline)
28
+ - 显示切换(ColorMode)
29
+ - 灯箱(medium-zoom、fancybox)
30
+ - 数学公式(Latex)
31
+ - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页
32
+ - 文章功能:AI 摘要、代码高亮
33
33
 
34
34
  ## Todo
35
35
 
36
- - [x] Support Waline
37
- - [ ] Tags plugin
38
- - [ ] Album reconstruction
36
+ - [x] Waline 评论支持
37
+ - [ ] Tags plugin 插件化
38
+ - [ ] 相册页重构(已移除,待重构)
39
39
 
40
- ## Setup
40
+ ## 应用
41
41
 
42
- 1. Use the NPM package
42
+ 1. 使用 NPM 包进行安装
43
43
  ```bash
44
44
  npm i hexo-theme-solitude
45
45
  ```
46
- 2. Apply
46
+ 2. 应用主题
47
47
  ```yaml
48
48
  theme: solitude
49
49
  ```
50
+
51
+ 前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。
50
52
 
51
- Check out the [Documentation](https://solitude-docs.efu.me/) for more information.
52
-
53
- ## Contributors
53
+ ## 贡献者
54
54
 
55
55
  <a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
56
56
  <img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
57
57
  </a>
58
58
 
59
- **Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!**
59
+ **主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
60
60
 
61
- > You are welcome to contribute to this topic! [Contribution Guide](/CONTRIBUTING.md)
61
+ > 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
package/README_zh-tw.md CHANGED
@@ -1,4 +1,4 @@
1
- [简体中文](README.md)丨繁体中文丨[English](README_EN.md)
1
+ [简体中文](README_zh-cn.md)丨繁体中文丨[English](README.md)
2
2
 
3
3
  <div align="center">
4
4
 
@@ -35,7 +35,7 @@
35
35
 
36
36
  - [x] Waline 評論支援
37
37
  - [ ] Tags plugin 外掛程式化
38
- - [ ] 相冊頁重構
38
+ - [ ] 相冊頁重構(已移除,待重構)
39
39
 
40
40
  ## 應用
41
41
 
package/_config.yml CHANGED
@@ -53,7 +53,6 @@ nav:
53
53
  # 友情链接: /links/ || st-group-fill
54
54
  # 宝藏博主: javascript:travelling() || st-gift-fill
55
55
  # 我的:
56
- # 相册集: /gallery/ || st-image-fill
57
56
  # 装备: /equipment/ || st-laptop-line
58
57
  # 工具箱: /tlink/ || st-tools-fill
59
58
  # 音乐馆: /music/ || st-disc-fill
@@ -321,11 +320,6 @@ post:
321
320
  enable: true
322
321
  license: CC BY-NC-SA 4.0
323
322
  licenurl: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
324
- # 是否使用移轴动画头像
325
- # Whether to use the shift animation avatar
326
- author:
327
- enable: false
328
- author_back: https://7.isyangs.cn/34/65f2e52b2d91e-34.png # 底部头像背景 / Bottom avatar background
329
323
  # 顶部文章简介
330
324
  # Top article introduction
331
325
  meta:
@@ -542,12 +536,6 @@ moments:
542
536
  bundlejs: https://cdn.cbd.int/st-source/js/moment/bundle.min.js
543
537
  randompostjs: https://cdn.cbd.int/st-source/js/moment/random_post.min.js
544
538
 
545
- # 相册
546
- # album
547
- album:
548
- enable: false # 是否开启相册 / Whether to enable album
549
- limit: 6 # 单行显示图片数量 / Number of pictures displayed in a single line
550
-
551
539
  # 快捷菜单你
552
540
  # quick menu
553
541
  keyboard:
package/languages/en.yml CHANGED
@@ -6,12 +6,15 @@ copy:
6
6
  success: Copied
7
7
  error: Copied failed
8
8
 
9
- time:
10
- recent: Recent
11
- yesterday: Yesterday
12
- berforeyesterday: TDBY
13
- daybefore: Days ago
14
- runtime: days
9
+ lately:
10
+ second: second
11
+ minute: minute
12
+ hour: hour
13
+ day: day
14
+ month: month
15
+ year: year
16
+ ago: ago
17
+ error: NaN
15
18
 
16
19
  chs:
17
20
  chs_tw: Traditional Chinese
@@ -7,12 +7,15 @@ copy:
7
7
  success: 复制成功
8
8
  error: 复制失败
9
9
 
10
- time:
11
- recent: 最近
12
- yesterday: 昨天
13
- berforeyesterday: 前天
14
- daybefore: 天前
15
- runtime:
10
+ lately:
11
+ second:
12
+ minute: 分钟
13
+ hour: 小时
14
+ day:
15
+ month: 个月
16
+ year: 年
17
+ ago: 前
18
+ error: NaN
16
19
 
17
20
  chs:
18
21
  chs_tw: 繁體中文
@@ -7,12 +7,15 @@ copy:
7
7
  success: 複製成功
8
8
  error: 複製失敗
9
9
 
10
- time:
11
- recent: 最近
12
- yesterday: 昨天
13
- berforeyesterday: 前天
14
- daybefore: 天前
15
- runtime:
10
+ lately:
11
+ second:
12
+ minute: 分鐘
13
+ hour: 小時
14
+ day:
15
+ month: 个月
16
+ year: 年
17
+ ago: 前
18
+ error: NaN
16
19
 
17
20
  chs:
18
21
  chs_tw: 繁體中文
@@ -61,12 +61,15 @@ script.
61
61
  error: '!{_p('copy.error')}',
62
62
  },
63
63
  backtop: '!{_p('nav.backtop')}',
64
- time: {
65
- recent: '!{_p('time.recent')}',
66
- yesterday: '!{_p('time.yesterday')}',
67
- berforeyesterday: '!{_p('time.berforeyesterday')}',
68
- daybefore: '!{_p('time.daybefore')}',
69
- runtime: '!{_p('time.runtime')}',
64
+ lately: {
65
+ second: '!{_p('lately.second')}',
66
+ minute: '!{_p('lately.minute')}',
67
+ hour: '!{_p('lately.hour')}',
68
+ day: '!{_p('lately.day')}',
69
+ month: '!{_p('lately.month')}',
70
+ year: '!{_p('lately.year')}',
71
+ ago: '!{_p('lately.ago')}',
72
+ error: '!{_p('lately.error')}',
70
73
  },
71
74
  search: {
72
75
  empty: '!{_p('search.empty')}',
@@ -14,12 +14,12 @@ div
14
14
  script(src=url_for(theme.cdn.main))
15
15
  script(src=url_for(theme.cdn.utils))
16
16
 
17
+ // lately
18
+ script(src=url_for(theme.cdn.lately_js))
19
+
17
20
  if theme.mermaid
18
21
  script(src=url_for(theme.cdn.mermaid_js))
19
22
 
20
- if theme.album.enable
21
- script(src=url_for(theme.cdn.macy_js))
22
-
23
23
  if theme.rightside.enable
24
24
  include ../widgets/rightside/index
25
25
  script(src=url_for(theme.cdn.rightside_js))
@@ -106,12 +106,13 @@ div
106
106
  != item
107
107
 
108
108
  div#js-pjax
109
+ case config.lang
110
+ when 'en'
111
+ script.
112
+ utils.changeTimeFormat()
109
113
  if theme.mermaid
110
114
  script.
111
115
  mermaid.run();
112
- if page.type === 'album' && theme.album.enable
113
- script.
114
- initGallery()
115
116
  if is_home() && theme.says.home_mini
116
117
  script.
117
118
  sco.initbbtalk();
@@ -78,7 +78,7 @@ script.
78
78
  )(window)
79
79
 
80
80
  console.log(
81
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.4",
81
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.6",
82
82
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
83
83
  "padding: 5px 10px;color:white;background:#3e9f50;",
84
84
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
@@ -1,16 +1,6 @@
1
1
  if theme.music.enable
2
2
  #Music-bg
3
3
  #Music-page
4
+ meting-js(id=theme.music.id, server=theme.music.server, type=theme.music.type, mutex=theme.music.mutex, volume=theme.music.volume, preload="none", data-lrctype="0", order="random")
4
5
  .Music-loading
5
- div APlayer加载中...
6
-
7
- script.
8
- if (!window.musicConfig) {
9
- window.musicConfig = {
10
- userId: '#{theme.music.id}',
11
- userServer: "#{theme.music.server}",
12
- userType: "#{theme.music.type}",
13
- volume: #{theme.music.volume},
14
- mutex: #{theme.music.mutex}
15
- }
16
- }
6
+ div APlayer加载中...
@@ -7,7 +7,7 @@ if personalities
7
7
  span.author-content-item-title= personalities.title
8
8
  .title2(style=`color:${personalities.color}`)= personalities.type
9
9
  .image
10
- img(src=personalities.image)
10
+ img.nolazyload(src=personalities.image)
11
11
  .post-tips
12
12
  | 在
13
13
  a(href="https://www.16personalities.com/")= personalities.linkText
@@ -1,8 +1,6 @@
1
1
  .post-copyright
2
2
  .post-copyright__author_group
3
3
  a.post-copyright__author_img(href="/about/")
4
- if theme.post.default.copyright.author.enable
5
- img.post-copyright__author_img_back(src=theme.post.default.copyright.author.author_back)
6
4
  img.post-copyright__author_img_front(src=theme.site.icon)
7
5
  .post-copyright__author_name= config.title
8
6
  .post-copyright__author_desc= config.subtitle
package/layout/page.pug CHANGED
@@ -25,10 +25,6 @@ block content
25
25
  include includes/page/default
26
26
  when 'music'
27
27
  include includes/page/music
28
- when 'gallery'
29
- include includes/page/gallery
30
- when 'album'
31
- include includes/page/album
32
28
  default
33
29
  include includes/page/default
34
30
  if page.comment
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.5.4",
3
+ "version": "1.5.6",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -98,10 +98,6 @@ fancyapps_css:
98
98
  name: fancyapps-ui
99
99
  file: dist/fancybox/fancybox.min.css
100
100
  version: 5.0.33
101
- macy_js:
102
- name: macy
103
- file: dist/macy.min.js
104
- version: 2.5.1
105
101
  mermaid_js:
106
102
  name: mermaid
107
103
  file: dist/mermaid.min.js
@@ -83,7 +83,12 @@ hexo.extend.filter.register('before_generate', () => {
83
83
  name: 'hexo-theme-solitude',
84
84
  file: 'js/universe.min.js',
85
85
  version
86
- }
86
+ },
87
+ lately_js: {
88
+ name: 'hexo-theme-solitude',
89
+ file: 'js/lately.min.js',
90
+ version
91
+ },
87
92
  }
88
93
 
89
94
  const minFile = file => {
@@ -15,7 +15,7 @@ function btn(args) {
15
15
  option = option.trim();
16
16
 
17
17
  return `<button class="btn-sco ${option}" onclick="location.href = '${urlFor(url)}'"
18
- title="${text}">${icon.length ? `<i class="${icon}"></i>` : ""}${text.length ? `<span>${text}</span>` : ""}</button>`;
18
+ title="${text}">${icon.length ? `<i class="solitude ${icon}"></i>` : ""}${text.length ? `<span>${text}</span>` : ""}</button>`;
19
19
  }
20
20
 
21
21
  hexo.extend.tag.register("btn", btn, { ends: false });
@@ -1,7 +1,7 @@
1
1
  'use strict'
2
2
 
3
3
  function bilibili(args) {
4
- return `<iframe class="bvideo" src="${args}"></iframe>`
4
+ return `<iframe class="bvideo" width="100%" height="600" src="//player.bilibili.com/player.html?aid=1351697032&bvid=${args}&p=1" border="0" frameBorder="no" framespacing="0" allowFullScreen="true"></iframe>`
5
5
  }
6
6
 
7
- hexo.extend.tag.register('bilibili', bilibili, { ends: false })
7
+ hexo.extend.tag.register('bvideo', bilibili, {ends: false})
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ function galleryGroup(args, content) {
4
+ const title = args[0];
5
+ const description = args[1];
6
+ const link = args[2];
7
+ const image = args[3];
8
+
9
+ return `<div class="gallery-item" onclick="pjax.loadUrl('/${link}/')">
10
+ <img class="cover" src="${image}" />
11
+ <span class="title">${title}</span>
12
+ <span class="desc">${description}</span>
13
+ </div>`;
14
+ }
15
+
16
+ const urlFor = require('hexo-util').url_for.bind(hexo)
17
+
18
+ const gallery = (args, content) => {
19
+ args = args.join(' ').split(',')
20
+ let button = false
21
+ let type = 'data'
22
+ let dataStr = ''
23
+
24
+ if (args[0] === 'url') {
25
+ [type, dataStr, button] = args // url,[link],[lazyload]
26
+ } else {
27
+ [button] = args // [lazyload]
28
+ const regex = /!\[(.*?)\]\(([^\s]*)\s*(?:["'](.*?)["']?)?\s*\)/g
29
+ let m
30
+ const arr = []
31
+ while ((m = regex.exec(content)) !== null) {
32
+ if (m.index === regex.lastIndex) {
33
+ regex.lastIndex++
34
+ }
35
+ arr.push({
36
+ url: m[2],
37
+ alt: m[1],
38
+ title: m[3]
39
+ })
40
+ }
41
+
42
+ dataStr = JSON.stringify(arr)
43
+ }
44
+
45
+ return `<div class="gallery-container" data-type="${type}" data-button="${button}">
46
+ <div class="gallery-data">${dataStr}</div>
47
+ <div class="gallery-items">
48
+ </div>
49
+ </div>`
50
+ }
51
+
52
+ hexo.extend.tag.register('gallery', gallery, {ends: true});
53
+
54
+ hexo.extend.tag.register('galleryGroup',galleryGroup, {ends: false});
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  hexo.extend.tag.register('image', function(args) {
4
- args = args.join(' ').split(', ');
4
+ args = args.join(' ').split(',');
5
5
  let url = args[0].trim();
6
6
  let alt = '';
7
7
  let bg = '';
@@ -1,17 +1,20 @@
1
1
  'use strict'
2
2
 
3
3
  function link(args) {
4
+ args = args.join(' ').split(',');
4
5
  let urlNoProtocol = args[2].replace(/^https?\:\/\//i, "");
5
6
  let imgUrl = "https://api.iowen.cn/favicon/" + urlNoProtocol + ".png";
6
- return `<a class="tag-Link" target="_blank" href="${args[2]}">
7
+ return `<a class="tag-link" target="_blank" href="${args[2]}">
7
8
  <div class="tag-link-tips">引用站外地址</div>
8
9
  <div class="tag-link-bottom">
9
- <div class="tag-link-left" style="background-image: url(${imgUrl});"></div>
10
+ <div class="tag-link-left" style="background-image: url(${imgUrl});">
11
+ <i class="solitude st-link-m-line"></i>
12
+ </div>
10
13
  <div class="tag-link-right">
11
14
  <div class="tag-link-title">${args[0]}</div>
12
15
  <div class="tag-link-sitename">${args[1]}</div>
13
16
  </div>
14
- <i class="fa-solid fa-angle-right"></i>
17
+ <i class="solitude st-arrow-right-bold"></i>
15
18
  </div>
16
19
  </a>`
17
20
  }
@@ -1,3 +1,9 @@
1
+ /**
2
+ * note.js
3
+ * transplant from hexo-theme-next
4
+ * modified by @efu
5
+ */
6
+
1
7
  hexo.extend.tag.register('note', function (types, content) {
2
8
  let type = ""
3
9
  for (let i = 0; i < types.length; i++) {
@@ -58,6 +58,10 @@ minWidth1200()
58
58
  @media screen and (min-width: 1200px)
59
59
  {block}
60
60
 
61
+ minWidth1201()
62
+ @media screen and (min-width: 1201px)
63
+ {block}
64
+
61
65
  maxWidth1024()
62
66
  @media screen and (max-width: 1024px)
63
67
  {block}