hexo-theme-solitude 1.5.0 → 1.5.2
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/ISSUE_TEMPLATE/config.yml +17 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +48 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +35 -0
- package/CONTRIBUTING.md +2 -13
- package/LICENSE +21 -674
- package/README.md +17 -41
- package/README_EN.md +14 -39
- package/SECURITY.md +9 -0
- package/_config.yml +235 -264
- package/languages/{en-US.yml → en.yml} +3 -5
- package/languages/zh-CN.yml +0 -2
- package/languages/zh-TW.yml +0 -2
- package/layout/404.pug +1 -1
- package/layout/includes/body/gadsense.pug +9 -0
- package/layout/includes/console.pug +6 -6
- package/layout/includes/footer.pug +13 -13
- package/layout/includes/inject/body.pug +10 -1
- package/layout/includes/inject/head.pug +6 -4
- package/layout/includes/mixins/pagination.pug +2 -2
- package/layout/includes/nav.pug +2 -2
- package/layout/includes/page/album.pug +9 -9
- package/layout/includes/page/says.pug +5 -5
- package/layout/includes/sidebar.pug +2 -3
- package/layout/includes/widgets/aside/asideInfoCard.pug +1 -1
- package/layout/includes/widgets/aside/asideNewestPost.pug +1 -1
- package/layout/includes/widgets/aside/asideToc.pug +1 -1
- package/layout/includes/widgets/aside/asideWebInfo.pug +8 -8
- package/layout/includes/widgets/home/banner.pug +1 -1
- package/layout/includes/widgets/home/bbTimeList.pug +7 -7
- package/layout/includes/widgets/home/categoryBar.pug +5 -4
- package/layout/includes/widgets/home/categoryGroup.pug +3 -2
- package/layout/includes/widgets/home/postList.pug +11 -5
- package/layout/includes/widgets/home/topGroup.pug +1 -1
- package/layout/includes/widgets/nav/menu.pug +1 -1
- package/layout/includes/widgets/nav/right.pug +6 -6
- package/layout/includes/widgets/page/about/award.pug +3 -3
- package/layout/includes/widgets/page/about/hobbies.pug +1 -1
- package/layout/includes/widgets/page/banner.pug +1 -1
- package/layout/includes/widgets/page/equipment/content.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +3 -3
- package/layout/includes/widgets/page/moments/angle.pug +1 -1
- package/layout/includes/widgets/post/award.pug +1 -1
- package/layout/includes/widgets/post/copyright.pug +1 -1
- package/layout/includes/widgets/post/post-ai.pug +1 -1
- package/layout/includes/widgets/post/postMeta.pug +12 -12
- package/layout/includes/widgets/rightside/index.pug +25 -25
- package/layout/includes/widgets/third-party/comments/comment.pug +1 -1
- package/layout/includes/widgets/third-party/music.pug +1 -1
- package/layout/includes/widgets/third-party/search/algolia-search.pug +2 -2
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/index.pug +2 -2
- package/package.json +9 -9
- package/plugins.yml +8 -12
- package/scripts/event/cdn.js +10 -0
- package/scripts/event/welcome.js +1 -1
- package/scripts/filter/lazyload.js +2 -3
- package/scripts/helper/related_post.js +1 -1
- package/scripts/helper/stylus.js +11 -3
- package/scripts/tags/card.js +1 -1
- package/scripts/tags/mermaid.js +9 -0
- package/scripts/tags/tabs.js +2 -2
- package/source/css/_global/animation.styl +1 -1
- package/source/css/_global/index.styl +27 -27
- package/source/css/_layout/basic.styl +18 -18
- package/source/css/_layout/header.styl +67 -67
- package/source/css/_layout/index.styl +14 -14
- package/source/css/_mode/index.styl +88 -88
- package/source/css/_page/_about/author.styl +5 -5
- package/source/css/_page/_about/buff.styl +1 -1
- package/source/css/_page/_about/careers.styl +1 -1
- package/source/css/_page/_about/contentinfo.styl +2 -2
- package/source/css/_page/_about/game.styl +2 -2
- package/source/css/_page/_about/like.styl +2 -2
- package/source/css/_page/_about/myphoto.styl +1 -1
- package/source/css/_page/_about/oneself.styl +2 -2
- package/source/css/_page/_about/reward.styl +11 -11
- package/source/css/_page/_about/skills.styl +2 -2
- package/source/css/_page/_about/statistic.styl +4 -4
- package/source/css/_page/_about/tenyear.styl +4 -4
- package/source/css/_page/_gallery/index.styl +7 -7
- package/source/css/_page/_home/category-bar.styl +11 -8
- package/source/css/_page/_home/home-top.styl +16 -16
- package/source/css/_page/_home/index.styl +1 -1
- package/source/css/_page/_home/pagination.styl +22 -22
- package/source/css/_page/_home/recent-post.styl +22 -15
- package/source/css/_page/category.styl +11 -11
- package/source/css/_page/douban.styl +10 -10
- package/source/css/_page/equipment.styl +10 -10
- package/source/css/_page/error.styl +3 -3
- package/source/css/_page/google.styl +32 -0
- package/source/css/_page/index.styl +4 -1
- package/source/css/_page/links.styl +27 -27
- package/source/css/_page/moment.styl +22 -22
- package/source/css/_page/music.styl +16 -14
- package/source/css/_page/says.styl +21 -21
- package/source/css/_page/share.styl +25 -25
- package/source/css/_page/tag.styl +12 -12
- package/source/css/_widgets/_aside/allinfo.styl +12 -12
- package/source/css/_widgets/_aside/flip.styl +3 -6
- package/source/css/_widgets/_aside/index.styl +4 -4
- package/source/css/_widgets/_aside/info.styl +27 -27
- package/source/css/_widgets/_aside/newPost.styl +5 -5
- package/source/css/_widgets/_aside/toc.styl +7 -7
- package/source/css/_widgets/_comment/index.styl +7 -7
- package/source/css/_widgets/_comment/twikoo.styl +66 -50
- package/source/css/_widgets/_comment/waline.styl +45 -44
- package/source/css/_widgets/_extra/console.styl +30 -29
- package/source/css/_widgets/_extra/fullpage.styl +1 -1
- package/source/css/_widgets/_extra/music.styl +11 -11
- package/source/css/_widgets/_extra/pace.styl +2 -2
- package/source/css/_widgets/_extra/rightmenu.styl +8 -8
- package/source/css/_widgets/_mixins/article-sort.styl +7 -7
- package/source/css/_widgets/_mixins/footer.styl +31 -29
- package/source/css/_widgets/_mixins/keyboard.styl +8 -8
- package/source/css/_widgets/_mixins/other.styl +4 -4
- package/source/css/_widgets/_mixins/sidebar.styl +20 -20
- package/source/css/_widgets/_post/_highlight/index.styl +16 -16
- package/source/css/_widgets/_post/_highlight/theme/default.styl +1 -1
- package/source/css/_widgets/_post/_highlight/theme/mac.styl +1 -1
- package/source/css/_widgets/_post/commentBarrage.styl +13 -13
- package/source/css/_widgets/_post/content.styl +27 -26
- package/source/css/_widgets/_post/copyright.styl +11 -11
- package/source/css/_widgets/_post/meta.styl +27 -27
- package/source/css/_widgets/_post/pagination.styl +13 -13
- package/source/css/_widgets/_post/postAI.styl +18 -18
- package/source/css/_widgets/_post/relatedPost.styl +8 -8
- package/source/css/_widgets/_post/tools.styl +30 -30
- package/source/css/_widgets/_search/algolia-search.styl +18 -18
- package/source/css/_widgets/_search/local-search.styl +22 -22
- package/source/css/_widgets/_tags/button.styl +1 -1
- package/source/css/_widgets/_tags/card.styl +12 -12
- package/source/css/_widgets/_tags/fold.styl +11 -11
- package/source/css/_widgets/_tags/index.styl +26 -26
- package/source/css/_widgets/_tags/link.styl +10 -9
- package/source/css/_widgets/_tags/mermaid.styl +4 -0
- package/source/css/_widgets/_tags/note.styl +2 -2
- package/source/css/_widgets/_tags/tabs.styl +10 -10
- package/source/css/_widgets/_tags/timeline.styl +5 -5
- package/source/img/logo.png +0 -0
- package/source/js/comment/twikoo_commentBarrage.js +1 -1
- package/source/js/comment/waline_commentBarrage.js +1 -1
- package/source/js/covercolor/api.js +18 -18
- package/source/js/covercolor/local.js +18 -18
- package/source/js/main.js +5 -5
- package/source/js/music.js +1 -12
- package/source/js/sco-ai.min.js +1 -1
- package/source/js/search/algolia.js +7 -7
- package/source/js/tw_cn.js +2 -2
- package/source/js/universe.min.js +5 -0
- package/source/js/utils.js +2 -2
- package/source/js/waterfall.min.js +1 -0
package/README.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
## Hexo-Theme-Solitude
|
6
6
|
|
7
|
-

|
8
|
+

|
9
9
|

|
10
10
|

|
11
|
-
](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
12
|
+

|
13
|
+

|
14
14
|
|
15
|
-
|
15
|
+

|
16
16
|
|
17
|
-
|
17
|
+
主题预览: ✨ [亦封](https://blog.meuicat.cn/) | 🐞 [Demo](https://solitude-demo.efu.me/)
|
18
18
|
|
19
|
-
|
19
|
+
主题文档: [中文](https://solitude-docs.efu.me/)
|
20
20
|
|
21
21
|
## 💻 安裝
|
22
22
|
|
@@ -27,16 +27,16 @@
|
|
27
27
|
在博客根目录里安装稳定版【推荐】
|
28
28
|
|
29
29
|
```powershell
|
30
|
-
git clone -b main https://github.com/
|
30
|
+
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
31
31
|
```
|
32
32
|
|
33
33
|
如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版
|
34
34
|
|
35
35
|
```powershell
|
36
|
-
git clone -b dev https://github.com/
|
36
|
+
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
37
37
|
```
|
38
38
|
|
39
|
-
###
|
39
|
+
### NPM 安装
|
40
40
|
|
41
41
|
> 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
|
42
42
|
|
@@ -63,53 +63,29 @@ theme: solitude
|
|
63
63
|
- [x] 支持多种评论插件
|
64
64
|
- [x] 内置网页访问统计
|
65
65
|
- [x] 支持暗色模式
|
66
|
-
- [x] 支持脚注语法
|
67
66
|
- [x] 支持自定义CDN静态资源
|
68
67
|
- [x] 支持多功能右键菜单
|
69
68
|
- [x] 支持定制化的主色调随封面图片颜色变化
|
70
69
|
- [x] 支持沉浸式状态栏
|
71
|
-
- [x] 支持聊天系统
|
72
70
|
- [x] 支持百度分析
|
73
71
|
- [x] 支持图片大图查看
|
74
72
|
- [x] 支持瀑布流即刻说说
|
73
|
+
- [x] 瀑布流相册
|
75
74
|
- [x] 支持自定义图标(iconfont、CoDeSign、fontawesome)
|
76
75
|
- [x] 支持高速缓存的swpp,pwa特性
|
77
76
|
- [x] 优秀的隐私协议支持
|
78
77
|
- [x] 文章摘要AI支持
|
79
78
|
- [x] 支持全局中控台
|
80
79
|
- [x] 支持本地搜索/algolia搜索🔍
|
81
|
-
- [x] 支持
|
80
|
+
- [x] 支持 Latex 数学公式
|
82
81
|
- [x] 支持 PWA
|
83
82
|
|
84
83
|
## ✨ 贡献者
|
85
84
|
|
86
|
-
<a href="https://github.com/
|
87
|
-
<img src="https://contrib.rocks/image?repo=
|
85
|
+
<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
|
86
|
+
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
88
87
|
</a>
|
89
88
|
|
90
|
-
|
91
|
-
|
92
|
-
> 欢迎你对本主题做出贡献
|
93
|
-
|
94
|
-
## 📷 截图
|
95
|
-
|
96
|
-
### 首页
|
97
|
-

|
98
|
-
|
99
|
-
### 即刻短文
|
100
|
-

|
101
|
-
|
102
|
-
### 友情链接
|
103
|
-

|
104
|
-
|
105
|
-
### 音乐馆
|
106
|
-

|
107
|
-
|
108
|
-
### 装备
|
109
|
-

|
110
|
-
|
111
|
-
### 工具箱
|
112
|
-

|
89
|
+
**主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
|
113
90
|
|
114
|
-
|
115
|
-

|
91
|
+
> 欢迎你对本主题做出贡献
|
package/README_EN.md
CHANGED
@@ -5,19 +5,18 @@
|
|
5
5
|
|
6
6
|
## Hexo-Theme-Solitude
|
7
7
|
|
8
|
-

|
9
|
+

|
10
10
|

|
11
|
+
[](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
|
11
12
|

|
12
|
-

|
13
14
|
|
14
|
-

|
15
16
|
|
16
|
-
Theme Preview: [
|
17
|
+
Theme Preview: [亦封](https://blog.meuicat.cn/)|[Demo](https://solitude-demo.efu.me/)
|
17
18
|
|
18
|
-
Theme Document: [中文](https://docs.
|
19
|
-
|
20
|
-
Theme discussion group:`The usage document above contains a QR code`
|
19
|
+
Theme Document: [中文](https://solitude-docs.efu.me/)
|
21
20
|
|
22
21
|
## 💻 Installation
|
23
22
|
|
@@ -28,16 +27,16 @@ Theme discussion group:`The usage document above contains a QR code`
|
|
28
27
|
Install the stable version in the root of your blog directory 【Recommended】
|
29
28
|
|
30
29
|
```powershell
|
31
|
-
git clone -b main https://github.com/
|
30
|
+
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
32
31
|
```
|
33
32
|
|
34
33
|
If you want to install the latest development version, you can install the dev branch in the root of your blog directory
|
35
34
|
|
36
35
|
```powershell
|
37
|
-
git clone -b dev https://github.com/
|
36
|
+
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
|
38
37
|
```
|
39
38
|
|
40
|
-
### Installation via
|
39
|
+
### Installation via NPM
|
41
40
|
|
42
41
|
> This method only supports Hexo versions above 5.0.0. Installing through npm will not generate a theme folder in themes, but in node_modules instead.
|
43
42
|
|
@@ -69,7 +68,6 @@ theme: solitude
|
|
69
68
|
- [x] Support multi-function right-click menu
|
70
69
|
- [x] Support for customizing the main color to change with the color of the cover image
|
71
70
|
- [x] Support for immersive status bars
|
72
|
-
- [x] Support for chat system
|
73
71
|
- [x] Support for Baidu Analytics
|
74
72
|
- [x] Support viewing large images
|
75
73
|
- [x] Support for waterfall instant talk
|
@@ -84,33 +82,10 @@ theme: solitude
|
|
84
82
|
|
85
83
|
## ✨ Contributors
|
86
84
|
|
87
|
-
<a href="https://github.com/
|
88
|
-
<img src="https://contrib.rocks/image?repo=
|
85
|
+
<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
|
86
|
+
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
|
89
87
|
</a>
|
90
88
|
|
91
|
-
**This theme
|
92
|
-
|
93
|
-
> Welcome to contribute to this theme! [Contribution Guide](/CONTRIBUTING.md)
|
94
|
-
|
95
|
-
## 📷 Preview
|
96
|
-
|
97
|
-
### Home
|
98
|
-

|
99
|
-
|
100
|
-
### Essay
|
101
|
-

|
102
|
-
|
103
|
-
### Links
|
104
|
-

|
105
|
-
|
106
|
-
### Music
|
107
|
-

|
108
|
-
|
109
|
-
### Equip
|
110
|
-

|
111
|
-
|
112
|
-
### Tools of link
|
113
|
-

|
89
|
+
**This theme designed and authorized by the author [张洪Heo](https://github.com/zhheo)!**
|
114
90
|
|
115
|
-
|
116
|
-

|
91
|
+
> Welcome to contribute to this theme! [Contribution Guide](/CONTRIBUTING.md)
|
package/SECURITY.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# 安全策略
|
2
|
+
|
3
|
+
## 报告漏洞
|
4
|
+
|
5
|
+
要报告漏洞,请在正确的 GitHub 存储库上 [通过安全选项卡私下报告](https://github.com/valor-x/hexo-theme-solitude/security/advisories/new)(请参阅 [文档](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability))。如果无法报告,请随时发送电子邮件至 **o@efu.me**。
|
6
|
+
|
7
|
+
所有安全漏洞都将得到及时验证和解决。
|
8
|
+
|
9
|
+
虽然发现新漏洞的情况很少见,但建议始终使用最新版本的主题和其他依赖项,通过维护锁定文件(`yarn.lock`、`package-lock.json`),以保证尽可能安全。
|