hexo-theme-solitude 2.1.7 → 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/CONTRIBUTING.md +1 -1
- package/LICENSE +1 -1
- package/README.md +19 -30
- package/README_en-US.md +26 -37
- package/README_zh-Hant.md +27 -36
- package/SECURITY.md +1 -1
- package/_config.yml +2 -2
- package/layout/includes/inject/body.pug +1 -1
- package/layout/includes/page/default.pug +1 -1
- package/layout/includes/page/links.pug +1 -1
- package/layout/includes/page/tlink.pug +1 -1
- package/layout/includes/widgets/page/about/hobbies.pug +18 -17
- package/layout/includes/widgets/page/about/tenyear.pug +24 -25
- package/layout/includes/widgets/page/links/linksCard.pug +5 -2
- package/layout/includes/widgets/page/message/content.pug +1 -1
- package/layout/post.pug +1 -1
- package/package.json +1 -1
- package/plugins.yml +10 -10
- package/scripts/event/welcome.js +11 -7
- package/scripts/filter/randomPosts.js +14 -3
- package/scripts/tags/article.js +53 -15
- package/scripts/tags/tabs.js +26 -17
- package/source/css/_comments/comment.styl +4 -3
- package/source/css/_comments/twikoo.styl +4 -5
- package/source/css/_global/animation.styl +0 -15
- package/source/css/_global/index.styl +19 -19
- package/source/css/_highlight/prismjs/index.styl +1 -1
- package/source/css/_highlight/prismjs/line-number.styl +1 -1
- package/source/css/_layout/article-container.styl +3 -3
- package/source/css/_layout/console.styl +1 -0
- package/source/css/_page/_about/about.styl +1 -1
- package/source/css/_page/_about/game.styl +2 -17
- package/source/css/_page/error.styl +2 -3
- package/source/css/_page/links.styl +2 -2
- package/source/css/_page/music.styl +1 -0
- package/source/css/_page/other.styl +1 -0
- package/source/css/_page/says.styl +4 -3
- package/source/css/_tags/gallery.styl +1 -1
- package/source/css/_tags/tabs.styl +2 -2
- package/source/js/covercolor/local.js +9 -1
- package/source/js/main.js +30 -17
- package/source/js/music.js +8 -3
- package/source/js/right_menu.js +11 -7
- package/source/js/third_party/post_ai.min.js +1 -1
- package/source/js/tw_cn.js +2 -2
package/.github/screenshot.avif
CHANGED
Binary file
|
package/CONTRIBUTING.md
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
|
13
13
|
### PR方式贡献代码步骤
|
14
14
|
|
15
|
-
* 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/
|
15
|
+
* 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/hexo-theme-solitude`,然后 `clone` 到本地Hexo主题目录,并设置用户信息。
|
16
16
|
|
17
17
|
```bash
|
18
18
|
$ git clone git@github.com:{your-github-username}/hexo-theme-solitude.git themes/solitude
|
package/LICENSE
CHANGED
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/SECURITY.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
## Reporting a Vulnerability
|
4
4
|
|
5
|
-
If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](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). If you're unable to report via GitHub, you can email us at o@everfu.
|
5
|
+
If you discover a vulnerability, please report it privately through the [GitHub Security tab](https://github.com/everfu/hexo-theme-solitude/security/advisories/new) on the appropriate repository. For detailed instructions, refer to this [documentation](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). If you're unable to report via GitHub, you can email us at [o@everfu.cn](mailto:o@everfu.cn).
|
6
6
|
|
7
7
|
We take security seriously and will verify and resolve any reported vulnerabilities promptly.
|
8
8
|
|
package/_config.yml
CHANGED
@@ -702,7 +702,7 @@ memorial:
|
|
702
702
|
date:
|
703
703
|
# - 7-7
|
704
704
|
# - 9-18
|
705
|
-
# - 12-13
|
705
|
+
# - 12-13
|
706
706
|
# --------------------------- end ---------------------------
|
707
707
|
|
708
708
|
# --------------------------- start ---------------------------
|
@@ -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
|
@@ -5,7 +5,7 @@ mixin katex
|
|
5
5
|
script(src=url_for(theme.cdn.katex_copytex))
|
6
6
|
script.
|
7
7
|
(() => {
|
8
|
-
document.querySelectorAll('
|
8
|
+
document.querySelectorAll('.article-container span.katex-display').forEach(item => {
|
9
9
|
utils.wrap(item, 'div', {class: 'katex-wrap'})
|
10
10
|
})
|
11
11
|
})();
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
.article-container
|
2
2
|
!= page.content
|
@@ -1,24 +1,25 @@
|
|
1
|
-
- var
|
2
|
-
- var game2 = site.data.about.game2
|
1
|
+
- var games = site.data.about.game
|
3
2
|
|
4
|
-
if
|
3
|
+
if games
|
5
4
|
.author-content
|
6
|
-
|
7
|
-
|
5
|
+
each game, index in games
|
6
|
+
style.
|
7
|
+
.game-#{index}::after {
|
8
|
+
box-shadow: #{game.box_shadow} !important;
|
9
|
+
}
|
10
|
+
.author-content-item.game(class=`game-${index}`, style=`background: url(${game.img}) no-repeat top; background-size: cover;`)
|
8
11
|
.card-content
|
9
|
-
.author-content-item-tips=
|
10
|
-
span.author-content-item-title=
|
12
|
+
.author-content-item-tips= game.title
|
13
|
+
span.author-content-item-title= game.subtitle
|
11
14
|
.content-bottom
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
.tips= game2.tips_left
|
21
|
-
.tips= game2.tips_right
|
15
|
+
if game.icon_group
|
16
|
+
.icon-group
|
17
|
+
each icon in game.icon_group
|
18
|
+
i(style=`background-image: url(${icon})`)
|
19
|
+
else if game.tips_left
|
20
|
+
.tips= game.tips_left
|
21
|
+
if game.tips_right
|
22
|
+
.tips= game.tips_right
|
22
23
|
|
23
24
|
if site.data.about.likes
|
24
25
|
- const likes = site.data.about.likes
|
@@ -2,47 +2,46 @@
|
|
2
2
|
if tenyear
|
3
3
|
.author-content#tenyear
|
4
4
|
.create-site-post.author-content-item.single
|
5
|
-
.author-content-item-tips=tenyear.tips
|
6
|
-
.author-content-item-title=tenyear.title
|
7
|
-
p=tenyear.text
|
5
|
+
.author-content-item-tips= tenyear.tips
|
6
|
+
.author-content-item-title= tenyear.title
|
7
|
+
p= tenyear.text
|
8
8
|
.tenyear-timeline
|
9
9
|
.progress
|
10
10
|
.past-time
|
11
11
|
.percentage-label
|
12
12
|
.time-labels
|
13
|
-
.start-time#tenyear-start-time= tenyear.start
|
14
|
-
.end-time#tenyear-end-time= tenyear.end
|
13
|
+
.start-time#tenyear-start-time= new Date(tenyear.start).toLocaleDateString()
|
14
|
+
.end-time#tenyear-end-time= new Date(tenyear.end).toLocaleDateString()
|
15
15
|
|
16
16
|
script.
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
const tenYear = () => {
|
18
|
+
const progressElement = document.querySelector(".progress");
|
19
|
+
const pastTimeElement = document.querySelector(".past-time");
|
20
|
+
const percentageLabelElement = document.querySelector(".percentage-label");
|
21
|
+
const startTimeElement = document.getElementById("tenyear-start-time");
|
22
|
+
const endTimeElement = document.getElementById("tenyear-end-time");
|
20
23
|
|
21
|
-
|
22
|
-
|
23
|
-
let pastTimeElement = document.querySelector(".past-time");
|
24
|
-
let percentageLabelElement = document.querySelector(".percentage-label");
|
25
|
-
let startTimeElement = document.getElementById("tenyear-start-time");
|
26
|
-
let endTimeElement = document.getElementById("tenyear-end-time");
|
24
|
+
const startTime = new Date(startTimeElement.textContent).getTime();
|
25
|
+
const endTime = new Date(endTimeElement.textContent).getTime();
|
27
26
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
let currentTime = new Date().getTime();
|
33
|
-
let progress = ((currentTime - startTime) / (endTime - startTime) * 100);
|
34
|
-
let progressPercentage = progress <= 100 ? progress + "%" : "100%";
|
27
|
+
const updateProgress = () => {
|
28
|
+
const currentTime = new Date().getTime();
|
29
|
+
const progress = ((currentTime - startTime) / (endTime - startTime) * 100);
|
30
|
+
const progressPercentage = Math.min(progress, 100) + "%";
|
35
31
|
|
36
32
|
pastTimeElement.style.setProperty("--past-time-percentage", progress + "%");
|
37
33
|
progressElement.style.setProperty("--progress-percentage", progressPercentage);
|
38
|
-
if(progress > 5){
|
34
|
+
if (progress > 5) {
|
39
35
|
percentageLabelElement.textContent = `${progress.toFixed(0)}%`;
|
40
36
|
percentageLabelElement.style.left = `calc(${progress}% - 35px)`;
|
41
37
|
}
|
42
|
-
}
|
38
|
+
};
|
43
39
|
|
44
40
|
percentageLabelElement.style.visibility = "visible";
|
45
41
|
updateProgress();
|
46
|
-
}
|
42
|
+
};
|
47
43
|
|
48
|
-
document.getElementById("tenyear")
|
44
|
+
if (document.getElementById("tenyear")) {
|
45
|
+
tenYear();
|
46
|
+
window.Pjax.on('complete', tenYear);
|
47
|
+
}
|
@@ -2,8 +2,11 @@
|
|
2
2
|
each item in data.link_list
|
3
3
|
.site-card
|
4
4
|
if item.tag
|
5
|
-
|
6
|
-
|
5
|
+
if item.color == 'vip' || item.color == 'speed'
|
6
|
+
span.site-card-tag(class=item.color)= item.tag
|
7
|
+
i.light
|
8
|
+
else
|
9
|
+
span.site-card-tag(style=`background-color: ${item.color};`)= item.tag
|
7
10
|
a.img(title=item.name, href=url_for(item.link))
|
8
11
|
img.flink-avatar(src=item.topimg + (data.topimg_suffix || ''), alt=item.name)
|
9
12
|
a.info.cf-friends-link(title=item.name, href=url_for(item.link))
|
package/layout/post.pug
CHANGED
package/package.json
CHANGED
package/plugins.yml
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
algolia_search:
|
2
2
|
name: algoliasearch
|
3
3
|
file: dist/algoliasearch.umd.js
|
4
|
-
version: 5.
|
4
|
+
version: 5.14.2
|
5
5
|
instantsearch:
|
6
6
|
name: instantsearch.js
|
7
7
|
file: dist/instantsearch.production.min.js
|
8
|
-
version: 4.
|
8
|
+
version: 4.75.5
|
9
9
|
pjax:
|
10
10
|
name: pjax
|
11
11
|
file: pjax.min.js
|
@@ -13,16 +13,16 @@ pjax:
|
|
13
13
|
twikoo:
|
14
14
|
name: twikoo
|
15
15
|
file: dist/twikoo.all.min.js
|
16
|
-
version: 1.6.
|
16
|
+
version: 1.6.40
|
17
17
|
waline_js:
|
18
18
|
name: '@waline/client'
|
19
19
|
file: dist/waline.js
|
20
20
|
other_name: waline
|
21
|
-
version: 3.3.
|
21
|
+
version: 3.3.2
|
22
22
|
waline_css:
|
23
23
|
name: '@waline/client'
|
24
24
|
file: dist/waline.css
|
25
|
-
version: 3.3.
|
25
|
+
version: 3.3.2
|
26
26
|
other_name: waline
|
27
27
|
valine:
|
28
28
|
name: valine
|
@@ -31,11 +31,11 @@ valine:
|
|
31
31
|
artalk_css:
|
32
32
|
name: artalk
|
33
33
|
file: dist/Artalk.css
|
34
|
-
version: 2.9.
|
34
|
+
version: 2.9.1
|
35
35
|
artalk_js:
|
36
36
|
name: artalk
|
37
37
|
file: dist/Artalk.js
|
38
|
-
version: 2.9.
|
38
|
+
version: 2.9.1
|
39
39
|
katex:
|
40
40
|
name: katex
|
41
41
|
file: dist/katex.min.css
|
@@ -106,7 +106,7 @@ fancyapps_css:
|
|
106
106
|
mermaid_js:
|
107
107
|
name: mermaid
|
108
108
|
file: dist/mermaid.js
|
109
|
-
version:
|
109
|
+
version: 11.4.0
|
110
110
|
chart_js:
|
111
111
|
name: chart.js
|
112
112
|
file: dist/chart.umd.js
|
@@ -115,7 +115,7 @@ chart_js:
|
|
115
115
|
typeit_js:
|
116
116
|
name: typeit
|
117
117
|
file: index.umd.min.js
|
118
|
-
version: 8.8.
|
118
|
+
version: 8.8.7
|
119
119
|
other_name: typeit
|
120
120
|
blueimp_md5:
|
121
121
|
name: blueimp-md5
|
@@ -129,5 +129,5 @@ qrcode:
|
|
129
129
|
color_thief:
|
130
130
|
name: colorthief
|
131
131
|
file: color-thief.min.js
|
132
|
-
version: 2.
|
132
|
+
version: 2.6.0
|
133
133
|
other_name: color-thief
|
package/scripts/event/welcome.js
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
hexo.on('ready', () => {
|
2
|
-
const {version} = require('../../package.json')
|
3
|
-
|
4
|
-
=====================[ Hexo Theme - Solitude ]=====================
|
2
|
+
const { version } = require('../../package.json')
|
3
|
+
const logo = `
|
5
4
|
##### #### # ##### ###### # # ###### ######
|
6
5
|
# # # # # # # # # # #
|
7
6
|
##### # # # # # # # # # ######
|
8
7
|
# # # # # # # # # # #
|
9
8
|
###### #### ##### ##### # ### ###### ######
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
`.replace(/#/g, '●')
|
10
|
+
const message = `
|
11
|
+
\x1b[38;5;45m=====================[ Hexo Theme - Solitude ]=====================\x1b[0m
|
12
|
+
\x1b[38;5;45m${logo}\x1b[0m
|
13
|
+
\x1b[38;5;45m version: ${version}\x1b[0m
|
14
|
+
\x1b[38;5;45m===================================================================\x1b[0m
|
15
|
+
\x1b[38;5;45mGitHub: https://github.com/everfu/hexo-theme-solitude\x1b[0m
|
16
|
+
`
|
17
|
+
hexo.log.info(message)
|
14
18
|
})
|