hexo-theme-solitude 1.1.0 → 1.1.3
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/README.md +56 -19
- package/README_EN.md +98 -0
- package/_config.yml +124 -124
- package/layout/page/about.ejs +3 -1
- package/layout/page/circle.ejs +1 -1
- package/layout/page/echarts.ejs +1 -14
- package/layout/page/links.ejs +1 -1
- package/layout/page/rss.ejs +10 -8
- package/layout/partial/compoment/about/award.ejs +1 -1
- package/layout/partial/compoment/circle/angle.ejs +1 -1
- package/layout/partial/compoment/circle/content.ejs +8 -8
- package/layout/partial/compoment/dorakika/rightmenu.ejs +1 -1
- package/layout/partial/compoment/inject/body.ejs +1 -3
- package/layout/partial/compoment/inject/head.ejs +3 -4
- package/layout/partial/compoment/links/angle.ejs +2 -2
- package/layout/partial/compoment/post/award.ejs +30 -22
- package/layout/partial/compoment/post/copyright.ejs +10 -8
- package/layout/partial/compoment/post/postMeta.ejs +11 -9
- package/layout/partial/footer.ejs +8 -3
- package/layout/partial/nav.ejs +1 -1
- package/layout/post.ejs +3 -3
- package/package.json +2 -2
- package/scripts/helper/charts.js +45 -34
- package/scripts/helper/related_post.js +10 -3
- package/scripts/tags/fold.js +2 -3
- package/scripts/tags/note.js +6 -2
- package/scripts/tags/tabs.js +1 -1
- package/source/css/main.css +24 -159
- package/source/img/default.png +0 -0
- package/source/img/logo-horizontal_version.png +0 -0
- package/source/img/pwa/16.png +0 -0
- package/source/img/pwa/180.png +0 -0
- package/source/img/pwa/192.png +0 -0
- package/source/img/pwa/32.png +0 -0
- package/source/img/pwa/512.png +0 -0
- package/source/img/pwa/logo.png +0 -0
- package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
- package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
- package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
- package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
- package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
- package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
- package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
- package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
- package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
- package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
- package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
- package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
- package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
- package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
- package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
- package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
- package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
- package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
- package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
- package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
- package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
- package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
- package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
- package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
- package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
- package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
- package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
- package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
- package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
- package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
- package/source/img/solitude-show.jpg +0 -0
- package/source/js/extend/covercolor/local.js +104 -94
- package/source/js/main.js +19 -16
- package/source/lib/chuckle-post-ai.js +1 -1
- package/scripts/filter/katex.js +0 -25
- package/scripts/tags/expand.js +0 -4
- package/scripts/tags/hide.js +0 -70
- package/source/js/extend/covercolor/web.js +0 -137
package/README.md
CHANGED
@@ -1,8 +1,28 @@
|
|
1
|
-
|
1
|
+
<div align="right">
|
2
|
+
语言:
|
3
|
+
中文 /
|
4
|
+
<a title="English" href="/README_EN.md">English</a>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<p align="center"><img width="400" src="/source/img/logo-horizontal_version.png"></p>
|
8
|
+
|
9
|
+
<p align="center">一款优雅的 Hexo 主题</p>
|
10
|
+
<p align="center">"在宁静的孤独中心探索内心,我们以简约之美引领优雅生活"</p>
|
11
|
+
|
12
|
+
<p align="center">
|
13
|
+
<a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.3.0-orange?style=flat"></a>
|
14
|
+
<a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
|
15
|
+
<a title="npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-solitude"><img alt="GitHub Forks" src="https://img.shields.io/npm/dt/hexo-theme-solitude?color=red&label=npm"></a>
|
16
|
+
<a title="License" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/DuoSco/Hexo-Theme-solitude.svg?style=flat"></a>
|
17
|
+
<a title="GitHub Release" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/DuoSco/Hexo-theme-solitude?style=flat"></a>
|
18
|
+
<a title="GitHub Commits" target="_blank" href="https://github.com/DuoSco/Hexo-Theme-solitude/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/DuoSco/Hexo-Theme-solitude.svg?style=flat&color=brightgreen&label=commits"></a>
|
19
|
+
</p>
|
20
|
+
|
21
|
+

|
2
22
|
|
3
23
|
主题预览: 👋[Demo](https://solitude.wzsco.top/) | [王卓Sco](https://blog.wzsco.top/)
|
4
24
|
|
5
|
-
|
25
|
+
主题文档: 📖[Solidude 文档](https://docs.wzsco.top/)
|
6
26
|
|
7
27
|
主题交流群:`文档内有群二维码和链接`
|
8
28
|
|
@@ -16,6 +36,22 @@
|
|
16
36
|
git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
|
17
37
|
```
|
18
38
|
|
39
|
+
如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版
|
40
|
+
|
41
|
+
```powershell
|
42
|
+
git clone -b dev https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
|
43
|
+
```
|
44
|
+
|
45
|
+
### npm 安装
|
46
|
+
|
47
|
+
> 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
|
48
|
+
|
49
|
+
在博客根目录里执行:
|
50
|
+
|
51
|
+
```powershell
|
52
|
+
npm install hexo-theme-solitude
|
53
|
+
```
|
54
|
+
|
19
55
|
## ⚙ 应用主题
|
20
56
|
|
21
57
|
修改hexo配置文件`_config.yml`,把主题改为`solitude`
|
@@ -24,38 +60,39 @@ git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solit
|
|
24
60
|
theme: solitude
|
25
61
|
```
|
26
62
|
|
27
|
-
## 更好的配置
|
28
|
-
|
29
|
-
|
63
|
+
## 🛠️ 更好的配置
|
64
|
+
|
65
|
+
- macos/linux 在博客根目录运行
|
66
|
+
|
30
67
|
```bash
|
31
68
|
cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
|
32
69
|
```
|
33
|
-
- windows
|
34
|
-
复制```/themes/solitude/_config.yml```此文件到hexo根目录,并重命名为```_config.solitude.yml```
|
35
70
|
|
36
|
-
|
71
|
+
- windows 复制 `/themes/solitude/_config.yml` 此文件到hexo根目录,并重命名为 `_config.solitude.yml`
|
72
|
+
|
73
|
+
## 🎁 赞助我们
|
37
74
|
|
38
|
-
|
75
|
+
由于我们是为爱发电,域名和一些零零散散的支出都是由开发者在承担费用,如果可以,希望能够得到你的赞赏,非常感谢!🙏 当然了,即使没有赞助我们也会用心开发。
|
39
76
|
|
40
|
-
[王卓Sco](https://afdian.net/a/wleelw0u0) [
|
77
|
+
[王卓Sco](https://afdian.net/a/wleelw0u0) [亦小封](https://afdian.net/a/yife68)
|
41
78
|
|
42
79
|
## ✨ 贡献者
|
43
|
-
> 欢迎你对本主题做出贡献
|
44
80
|
|
45
|
-
|
81
|
+
<a href="https://github.com/DuoSco/Hexo-theme-solitude/graphs/contributors">
|
82
|
+
<img src="https://contrib.rocks/image?repo=DuoSco/Hexo-theme-solitude" />
|
83
|
+
</a>
|
46
84
|
|
47
|
-
|
85
|
+
特别冠名:
|
48
86
|
[@王卓Sco](https://github.com/wleelw)
|
49
|
-
[
|
87
|
+
[@亦小封](https://github.com/yife68)
|
50
88
|
[@rootlex](https://github.com/rootlexme)
|
51
89
|
[@timigomen](https://github.com/timigomen)
|
52
90
|
[@Glannons](https://github.com/Glannons)
|
53
91
|
[@Adil](https://github.com/adil-zhang)
|
54
92
|
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
[@王卓Sco](https://github.com/wleelw)
|
93
|
+
**本主题为 [Heo](https://blog.zhheo.com/) 的衍生主题,由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
|
94
|
+
|
95
|
+
> 欢迎你对本主题做出贡献! [贡献指南](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
|
59
96
|
|
60
|
-
## 仓库统计
|
97
|
+
## 📊 仓库统计
|
61
98
|

|
package/README_EN.md
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
<div align="right">
|
2
|
+
Language:
|
3
|
+
English /
|
4
|
+
<a title="English" href="/README.md">中文</a>
|
5
|
+
</div>
|
6
|
+
|
7
|
+
<p align="center"><img width="400" src="/source/img/logo-horizontal_version.png"></p>
|
8
|
+
|
9
|
+
<p align="center">An elegant Hexo theme</p>
|
10
|
+
<p align="center">"Explore the inner self in peaceful solitude, leading a life of simplicity and elegance."</p>
|
11
|
+
|
12
|
+
<p align="center">
|
13
|
+
<a title="Hexo Version" target="_blank" href="https://hexo.io/zh-cn/"><img alt="Hexo Version" src="https://img.shields.io/badge/Hexo-%3E%3D%205.3.0-orange?style=flat"></a>
|
14
|
+
<a title="Node Version" target="_blank" href="https://nodejs.org/zh-cn/"><img alt="Node Version" src="https://img.shields.io/badge/Node-%3E%3D%2010.13.0-yellowgreen?style=flat"></a>
|
15
|
+
<a title="npm Downloads" target="_blank" href="https://www.npmjs.com/package/hexo-theme-solitude"><img alt="GitHub Forks" src="https://img.shields.io/npm/dt/hexo-theme-solitude?color=red&label=npm"></a>
|
16
|
+
<a title="License" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/blob/main/LICENSE"><img alt="License" src="https://img.shields.io/github/license/DuoSco/Hexo-Theme-solitude.svg?style=flat"></a>
|
17
|
+
<a title="GitHub Release" target="_blank" href="https://github.com/DuoSco/Hexo-theme-solitude/releases"><img alt="GitHub Release" src="https://img.shields.io/github/v/release/DuoSco/Hexo-theme-solitude?style=flat"></a>
|
18
|
+
<a title="GitHub Commits" target="_blank" href="https://github.com/DuoSco/Hexo-Theme-solitude/commits/master"><img alt="GitHub Commits" src="https://img.shields.io/github/commit-activity/m/DuoSco/Hexo-Theme-solitude.svg?style=flat&color=brightgreen&label=commits"></a>
|
19
|
+
</p>
|
20
|
+
|
21
|
+

|
22
|
+
|
23
|
+
Theme Preview: 👋[Demo](https://solitude.wzsco.top/) | [王卓Sco](https://blog.wzsco.top/)
|
24
|
+
|
25
|
+
Theme Document: [📖Solidude Document](https://docs.wzsco.top/)
|
26
|
+
|
27
|
+
Theme discussion group:`The usage document above contains a QR code`
|
28
|
+
|
29
|
+
## 💻 Installation
|
30
|
+
|
31
|
+
### Installation via Git
|
32
|
+
|
33
|
+
Install the stable version in the root of your blog directory 【Recommended】
|
34
|
+
|
35
|
+
```powershell
|
36
|
+
git clone -b main https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
|
37
|
+
```
|
38
|
+
|
39
|
+
If you want to install the latest development version, you can install the dev branch in the root of your blog directory
|
40
|
+
|
41
|
+
```powershell
|
42
|
+
git clone -b dev https://github.com/DuoSco/Hexo-theme-solitude.git themes/solitude
|
43
|
+
```
|
44
|
+
|
45
|
+
### Installation via npm
|
46
|
+
|
47
|
+
> 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.
|
48
|
+
|
49
|
+
Execute the following command in the root of your blog directory:
|
50
|
+
|
51
|
+
```powershell
|
52
|
+
npm install hexo-theme-solitude
|
53
|
+
```
|
54
|
+
|
55
|
+
## ⚙ Applying the Theme
|
56
|
+
|
57
|
+
Modify the hexo configuration file `_config.yml` and change the theme to `solitude`
|
58
|
+
|
59
|
+
```
|
60
|
+
theme: solitude
|
61
|
+
```
|
62
|
+
|
63
|
+
## 🛠️ Better Configuration
|
64
|
+
|
65
|
+
- MacOS/Linux Run the following command in the root of your blog directory
|
66
|
+
|
67
|
+
```bash
|
68
|
+
cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
|
69
|
+
```
|
70
|
+
|
71
|
+
- Windows Copy the file `/themes/solitude/_config.yml` to the root directory of your Hexo installation and rename it as `_config.solitude.yml`
|
72
|
+
|
73
|
+
## 🎁 Sponsor Us
|
74
|
+
|
75
|
+
As we generate power for Love, the domain name and some scattered expenses are borne by the developers. If possible, we hope to receive your appreciation. Thank you very much! 🙏 Of course, even without sponsorship, we will strive to continue developing.
|
76
|
+
|
77
|
+
[王卓Sco](https://afdian.net/a/wleelw0u0) [亦小封](https://afdian.net/a/yife68)
|
78
|
+
|
79
|
+
## ✨ Contributors
|
80
|
+
|
81
|
+
<a href="https://github.com/DuoSco/Hexo-theme-solitude/graphs/contributors">
|
82
|
+
<img src="https://contrib.rocks/image?repo=DuoSco/Hexo-theme-solitude" />
|
83
|
+
</a>
|
84
|
+
|
85
|
+
Special thanks to:
|
86
|
+
[@王卓Sco](https://github.com/wleelw)
|
87
|
+
[@亦小封](https://github.com/yife68)
|
88
|
+
[@rootlex](https://github.com/rootlexme)
|
89
|
+
[@timigomen](https://github.com/timigomen)
|
90
|
+
[@Glannons](https://github.com/Glannons)
|
91
|
+
[@Adil](https://github.com/adil-zhang)
|
92
|
+
|
93
|
+
**This theme is a derivative theme of [Heo](https://blog.zhheo.com/), designed and authorized by the author [张洪Heo](https://github.com/zhheo)!**
|
94
|
+
|
95
|
+
> Welcome to contribute to this theme! [Contribution Guide](https://opensource.guide/zh-hans/how-to-contribute/#%E5%A6%82%E4%BD%95%E6%8F%90%E4%BA%A4%E8%B4%A1%E7%8C%AE)
|
96
|
+
|
97
|
+
## 📊 Repository Statistics
|
98
|
+

|
package/_config.yml
CHANGED
@@ -3,8 +3,8 @@ site:
|
|
3
3
|
name: # 左上角显示内容
|
4
4
|
class: text #i_class/text/img
|
5
5
|
custom: Solitude #自定义内容 例如:scoicon sco-logo / 王卓Sco / https://p.sondy.top/logo.png
|
6
|
-
siteIcon: https://bu.dusays.com/2023/
|
7
|
-
icon: https://bu.dusays.com/2023/
|
6
|
+
siteIcon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 网页icon
|
7
|
+
icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 页脚的icon、加载动画默认的icon
|
8
8
|
icp: # ICP 例如:湘ICP备2023015327号
|
9
9
|
|
10
10
|
|
@@ -14,59 +14,59 @@ nav:
|
|
14
14
|
left:
|
15
15
|
enable: false
|
16
16
|
menu:
|
17
|
-
# 项目:
|
18
|
-
# Solitude:
|
19
|
-
# icon: https://bu.dusays.com/2023/
|
20
|
-
# url: https://github.com/DuoSco/Hexo-Theme-solitude
|
17
|
+
# 项目:
|
18
|
+
# Solitude:
|
19
|
+
# icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
|
20
|
+
# url: https://github.com/DuoSco/Hexo-Theme-solitude
|
21
21
|
|
22
|
-
# 导航栏内容
|
22
|
+
# 导航栏内容
|
23
23
|
menu:
|
24
|
-
# 文库:
|
25
|
-
# url: false
|
26
|
-
# child:
|
27
|
-
# 文章列表:
|
28
|
-
# url: /archives/
|
29
|
-
# icon: scoicon sco-folder-fill
|
30
|
-
# 全部分类:
|
31
|
-
# url: /categories/
|
32
|
-
# icon: scoicon sco-checkbox-multiple-blank-fill
|
33
|
-
# 全部标签:
|
34
|
-
# url: /tags/
|
35
|
-
# icon: scoicon sco-price-tag-fill
|
36
|
-
# 友链:
|
37
|
-
# url: false
|
38
|
-
# child:
|
39
|
-
# 鱼塘:
|
40
|
-
# url: /moments/
|
41
|
-
# icon: scoicon sco-wifi-fill
|
42
|
-
# 友情链接:
|
43
|
-
# url: /links/
|
44
|
-
# icon: scoicon sco-group-fill
|
45
|
-
# 宝藏博主:
|
46
|
-
# url: javascript:travelling()
|
47
|
-
# icon: scoicon sco-gift-fill
|
48
|
-
# 我的:
|
49
|
-
# url: false
|
50
|
-
# child:
|
51
|
-
# 装备:
|
52
|
-
# url: /equipment/
|
53
|
-
# icon: scoicon sco-laptop-line
|
54
|
-
# 工具箱:
|
55
|
-
# url: /tlink/
|
56
|
-
# icon: scoicon sco-tools-fill
|
57
|
-
# 关于:
|
58
|
-
# url: false
|
59
|
-
# child:
|
60
|
-
# 关于本站:
|
61
|
-
# url: /about/
|
62
|
-
# icon: scoicon sco-contacts-fill
|
24
|
+
# 文库:
|
25
|
+
# url: false
|
26
|
+
# child:
|
27
|
+
# 文章列表:
|
28
|
+
# url: /archives/
|
29
|
+
# icon: scoicon sco-folder-fill
|
30
|
+
# 全部分类:
|
31
|
+
# url: /categories/
|
32
|
+
# icon: scoicon sco-checkbox-multiple-blank-fill
|
33
|
+
# 全部标签:
|
34
|
+
# url: /tags/
|
35
|
+
# icon: scoicon sco-price-tag-fill
|
36
|
+
# 友链:
|
37
|
+
# url: false
|
38
|
+
# child:
|
39
|
+
# 鱼塘:
|
40
|
+
# url: /moments/
|
41
|
+
# icon: scoicon sco-wifi-fill
|
42
|
+
# 友情链接:
|
43
|
+
# url: /links/
|
44
|
+
# icon: scoicon sco-group-fill
|
45
|
+
# 宝藏博主:
|
46
|
+
# url: javascript:travelling()
|
47
|
+
# icon: scoicon sco-gift-fill
|
48
|
+
# 我的:
|
49
|
+
# url: false
|
50
|
+
# child:
|
51
|
+
# 装备:
|
52
|
+
# url: /equipment/
|
53
|
+
# icon: scoicon sco-laptop-line
|
54
|
+
# 工具箱:
|
55
|
+
# url: /tlink/
|
56
|
+
# icon: scoicon sco-tools-fill
|
57
|
+
# 关于:
|
58
|
+
# url: false
|
59
|
+
# child:
|
60
|
+
# 关于本站:
|
61
|
+
# url: /about/
|
62
|
+
# icon: scoicon sco-contacts-fill
|
63
63
|
|
64
64
|
|
65
65
|
# 导航栏右侧快捷菜单 (true,false)
|
66
66
|
right: # @todo 允许用户自定义
|
67
|
-
travellings:
|
68
|
-
random:
|
69
|
-
console:
|
67
|
+
travellings: false #开往
|
68
|
+
random: false # 随机文章跳转
|
69
|
+
console: false #控制台
|
70
70
|
|
71
71
|
# 自定义icon
|
72
72
|
icon:
|
@@ -76,9 +76,9 @@ icon:
|
|
76
76
|
hometop:
|
77
77
|
bbtime: false # 即刻顶部是否开启
|
78
78
|
banner:
|
79
|
-
enable:
|
79
|
+
enable: false # 是否打开顶部banner
|
80
80
|
title: 宁静致远<br>热爱生活 # 左上角显示文字
|
81
|
-
url:
|
81
|
+
url: Hexo-Theme-Solitude # title下方小字
|
82
82
|
# 轮播icon
|
83
83
|
icon:
|
84
84
|
HTML:
|
@@ -124,7 +124,7 @@ hometop:
|
|
124
124
|
# 右侧置顶列表(在文章的front matter中添加“recommend: true”)
|
125
125
|
recommendList:
|
126
126
|
sup: 置顶 # 左上角显示文字
|
127
|
-
title: 主题文档 # 左下角大字
|
127
|
+
title: Solitude主题文档 # 左下角大字
|
128
128
|
url: https://docs.wzsco.top/ # 点击跳转链接
|
129
129
|
img: /img/default.png # 显示背景
|
130
130
|
color: '#ff0000' # 背景颜色
|
@@ -149,7 +149,7 @@ aside:
|
|
149
149
|
# 侧边栏个人信息卡片
|
150
150
|
card:
|
151
151
|
author:
|
152
|
-
img: https://bu.dusays.com/2023/
|
152
|
+
img: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 头像
|
153
153
|
js: https://cdn3.codesign.qq.com/icons/XgRxnjPG4VZLmqr/latest/iconfont.js # 自定义图标js(用于显示带颜色的状态表情)
|
154
154
|
state: "#sco-smile" # 状态表情(使用symbol)
|
155
155
|
content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。 # 文案1
|
@@ -183,7 +183,7 @@ aside:
|
|
183
183
|
history:
|
184
184
|
enable: false
|
185
185
|
title: #【选填】留空将默认显示为:那年今日
|
186
|
-
icon:
|
186
|
+
icon:
|
187
187
|
# 页面目录
|
188
188
|
toc:
|
189
189
|
post: true # 在文章页显示
|
@@ -196,7 +196,7 @@ aside:
|
|
196
196
|
pv: false # 访问量
|
197
197
|
uv: false # 访客数
|
198
198
|
updatetime: false # 最后更新日期
|
199
|
-
runtimeenable:
|
199
|
+
runtimeenable: false # 建站时间
|
200
200
|
runtime: '2023-04-20 00:00:00' # 格式:yyyy-MM-dd hh-mm-ss
|
201
201
|
|
202
202
|
# Footer Settings
|
@@ -205,41 +205,41 @@ footer:
|
|
205
205
|
# 底部上方一排图标
|
206
206
|
information:
|
207
207
|
left: # 左侧显示图标
|
208
|
-
# Github:
|
209
|
-
# icon: scoicon sco-bilibili-line
|
210
|
-
# url: https://github.com/wleelw
|
211
|
-
# Mail:
|
212
|
-
# icon: scoicon sco-mail-line
|
213
|
-
# url: mailto:wleelw@wzsco.top
|
208
|
+
# Github:
|
209
|
+
# icon: scoicon sco-bilibili-line
|
210
|
+
# url: https://github.com/wleelw
|
211
|
+
# Mail:
|
212
|
+
# icon: scoicon sco-mail-line
|
213
|
+
# url: mailto:wleelw@wzsco.top
|
214
214
|
right: # 右侧显示图标
|
215
|
-
# Bilibili:
|
216
|
-
# icon: scoicon sco-bilibili-line
|
217
|
-
# url: https://space.bilibili.com/1329819902
|
218
|
-
# 抖音:
|
219
|
-
# icon: scoicon sco-douyin-fill
|
220
|
-
# url: https://v.douyin.com/iJsLc8jt/
|
215
|
+
# Bilibili:
|
216
|
+
# icon: scoicon sco-bilibili-line
|
217
|
+
# url: https://space.bilibili.com/1329819902
|
218
|
+
# 抖音:
|
219
|
+
# icon: scoicon sco-douyin-fill
|
220
|
+
# url: https://v.douyin.com/iJsLc8jt/
|
221
221
|
# 底部导航栏
|
222
222
|
group: # 从左至右
|
223
|
-
# 导航:
|
224
|
-
# 归档: /archives/
|
225
|
-
# 分类: /categories/
|
226
|
-
# 标签: /tags/
|
227
|
-
# 服务:
|
228
|
-
# 阿里云: https://aliyun.com/
|
229
|
-
# 51la统计: https://v6.51.la/
|
230
|
-
# 百度统计: https://tongji.baidu.com/
|
231
|
-
# 支持:
|
232
|
-
# 打赏记录: /about/
|
233
|
-
# 协议:
|
234
|
-
# Cookies: /cookies/
|
235
|
-
# 用户协议: /privacy/
|
236
|
-
# 版权协议: /copyright/
|
223
|
+
# 导航:
|
224
|
+
# 归档: /archives/
|
225
|
+
# 分类: /categories/
|
226
|
+
# 标签: /tags/
|
227
|
+
# 服务:
|
228
|
+
# 阿里云: https://aliyun.com/
|
229
|
+
# 51la统计: https://v6.51.la/
|
230
|
+
# 百度统计: https://tongji.baidu.com/
|
231
|
+
# 支持:
|
232
|
+
# 打赏记录: /about/
|
233
|
+
# 协议:
|
234
|
+
# Cookies: /cookies/
|
235
|
+
# 用户协议: /privacy/
|
236
|
+
# 版权协议: /copyright/
|
237
237
|
|
238
238
|
# 底部随机友链
|
239
239
|
randomlink: false
|
240
240
|
# rss
|
241
241
|
rss:
|
242
|
-
enable:
|
242
|
+
enable: false
|
243
243
|
wechatOA: # 微信公众号链接
|
244
244
|
emailOA: # 邮箱链接
|
245
245
|
rss: # rss订阅链接
|
@@ -263,18 +263,18 @@ post:
|
|
263
263
|
copyright: 原创
|
264
264
|
# 顶部文章简介
|
265
265
|
meta:
|
266
|
-
date:
|
267
|
-
updated:
|
268
|
-
locate:
|
269
|
-
wordcount:
|
270
|
-
readtime:
|
271
|
-
pv:
|
272
|
-
comment:
|
266
|
+
date: false # 发布日期
|
267
|
+
updated: false # 更新日期
|
268
|
+
locate: false # 位置
|
269
|
+
wordcount: false # 字数
|
270
|
+
readtime: false # 访问
|
271
|
+
pv: false # 浏览量
|
272
|
+
comment: false # 评论数
|
273
273
|
# 打赏
|
274
274
|
award:
|
275
275
|
enable: false # 开启后文章底部显示打赏按钮
|
276
|
-
wechat: https://
|
277
|
-
alipay: https://
|
276
|
+
wechat: https://bu.dusays.com/2023/11/07/6549e79364fa3.png # 微信收款码
|
277
|
+
alipay: https://bu.dusays.com/2023/11/07/6549e79d02bd6.png # 支付宝收款码
|
278
278
|
url: /about # 打赏统计页面链接
|
279
279
|
# 文章颜色获取
|
280
280
|
covercolor: #文章cover取色
|
@@ -282,7 +282,7 @@ post:
|
|
282
282
|
local: true
|
283
283
|
|
284
284
|
# 关于界面
|
285
|
-
about:
|
285
|
+
about: false
|
286
286
|
|
287
287
|
# 404 页面
|
288
288
|
errorpage:
|
@@ -292,29 +292,29 @@ errorpage:
|
|
292
292
|
|
293
293
|
# 懒加载
|
294
294
|
lazyload:
|
295
|
-
enable:
|
295
|
+
enable: false
|
296
296
|
placeholder: /img/loading.gif # 加载中显示图片
|
297
297
|
errorimg: /img/error_load.png # 加载失败显示图片
|
298
298
|
|
299
299
|
# 图片灯箱
|
300
|
-
lightbox:
|
300
|
+
lightbox: false
|
301
301
|
|
302
302
|
#代码高亮增强
|
303
303
|
hightlight:
|
304
|
-
enable:
|
304
|
+
enable: false
|
305
305
|
hightlimit: 200
|
306
306
|
|
307
307
|
# 加载动画
|
308
308
|
loading:
|
309
|
-
fullpage:
|
310
|
-
pace:
|
309
|
+
fullpage: false
|
310
|
+
pace: false
|
311
311
|
|
312
312
|
# 第三方设置
|
313
313
|
thirdparty:
|
314
|
-
wordcount:
|
314
|
+
wordcount: false # 字数统计
|
315
315
|
busuanzi:
|
316
|
-
enable:
|
317
|
-
usecomment:
|
316
|
+
enable: false
|
317
|
+
usecomment: false #当评论系统开启时文章页面使用评论系统的统计数据
|
318
318
|
search: # 搜索
|
319
319
|
algolia_search:
|
320
320
|
enable: false
|
@@ -326,12 +326,34 @@ thirdparty:
|
|
326
326
|
CDN:
|
327
327
|
|
328
328
|
aplayer: # 播放器
|
329
|
-
enable:
|
329
|
+
enable: false
|
330
330
|
server: tencent # netease, tencent, kugou, xiami, baidu
|
331
331
|
id: 8651639768 # 歌单ID
|
332
332
|
api: "https://api.injahow.cn/meting/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
|
333
333
|
#中控台拓展
|
334
|
-
consolePlus:
|
334
|
+
consolePlus: false
|
335
|
+
|
336
|
+
ai: # 文章页面AI
|
337
|
+
enable: false
|
338
|
+
key: # 前往tianli-AI 购买
|
339
|
+
rec_method: # 推荐文章方式(all:匹配数据库所有文章、web:仅当前博客文章)默认:web
|
340
|
+
|
341
|
+
# 朋友圈配置
|
342
|
+
circle:
|
343
|
+
api: https://circle.sondy.top/ # api 地址
|
344
|
+
error_img: /img/theme/avatar.png # 头像加载失败显示错误图片
|
345
|
+
sort_rule: created # 排序规则
|
346
|
+
expire_days: 1 # 文章缓存天数
|
347
|
+
page_init_number: 12 # 默认加载文章数,默认10
|
348
|
+
page_turning_number: 12 # 加载更多文章数,默认10
|
349
|
+
angle: # 钓鱼
|
350
|
+
enable: false
|
351
|
+
appjs: '/lib/circle.min.js' # 主题appjs
|
352
|
+
bundlejs: '/lib/bundle.min.js' # 主题bundejs
|
353
|
+
|
354
|
+
# 文章统计
|
355
|
+
echarts:
|
356
|
+
js: https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js
|
335
357
|
|
336
358
|
# 评论
|
337
359
|
comment:
|
@@ -341,28 +363,6 @@ comment:
|
|
341
363
|
lang: 'zh-CN'
|
342
364
|
accessToken: # accessToken
|
343
365
|
|
344
|
-
ai: # 文章页面AI
|
345
|
-
enable: false
|
346
|
-
key: # 前往tianli-AI 购买
|
347
|
-
rec_method: # 推荐文章方式(all:匹配数据库所有文章、web:仅当前博客文章)默认:web
|
348
|
-
|
349
|
-
# 朋友圈配置
|
350
|
-
circle:
|
351
|
-
api: https://circle.sondy.top/ # api 地址
|
352
|
-
error_img: /img/theme/avatar.png # 头像加载失败显示错误图片
|
353
|
-
sort_rule: created # 排序规则
|
354
|
-
expire_days: 1 # 文章缓存天数
|
355
|
-
page_init_number: 12 # 默认加载文章数,默认10
|
356
|
-
page_turning_number: 12 # 加载更多文章数,默认10
|
357
|
-
angle: # 钓鱼
|
358
|
-
enable: false
|
359
|
-
appjs: '/lib/circle.min.js' # 主题appjs
|
360
|
-
bundlejs: '/lib/bundle.min.js' # 主题bundejs
|
361
|
-
|
362
|
-
# 文章统计
|
363
|
-
echarts:
|
364
|
-
js: https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js
|
365
|
-
|
366
366
|
# 插入代码到头部 </head> 之前 和 底部 </body> 之前
|
367
367
|
# 插入额外代码 如:统计,广告等
|
368
368
|
extends:
|
package/layout/page/about.ejs
CHANGED
@@ -9,5 +9,7 @@
|
|
9
9
|
<%- partial('partial/compoment/about/other' ) %>
|
10
10
|
<%- partial('partial/compoment/about/award' ) %>
|
11
11
|
</div>
|
12
|
-
|
12
|
+
<% if(theme.thirdparty.echarts.enable){%>
|
13
|
+
<%- js(theme.thirdparty.echarts.js) %>
|
14
|
+
<%} %>
|
13
15
|
<% } %>
|
package/layout/page/circle.ejs
CHANGED
package/layout/page/echarts.ejs
CHANGED
@@ -1,14 +1 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<main class="layout hide-aside" id="content-inner">
|
4
|
-
<div id="page">
|
5
|
-
<%- page.content %>
|
6
|
-
<% if(page.comment){ %>
|
7
|
-
<%- partial('partial/compoment/third-party/comments/comment') %>
|
8
|
-
<% } %>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<% if(page.aside){%>
|
12
|
-
<%- partial('partial/compoment/aside/aside') %>
|
13
|
-
<%} %>
|
14
|
-
</main>
|
1
|
+
<%- page.content %>
|
package/layout/page/links.ejs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
<div class="flink" id="banners">
|
2
2
|
<%- partial('partial/compoment/links/banner') %>
|
3
3
|
</div>
|
4
|
-
<% if(theme.circle.angle.enable){ %>
|
4
|
+
<% if(theme.thirdparty.circle.angle.enable){ %>
|
5
5
|
<%- partial('partial/compoment/links/angle') %>
|
6
6
|
<% } %>
|
7
7
|
<div class="flink" id="article-container">
|