hexo-theme-solitude 1.0.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.
Files changed (125) hide show
  1. package/README.md +62 -20
  2. package/README_EN.md +98 -0
  3. package/_config.yml +162 -144
  4. package/layout/404.ejs +1 -1
  5. package/layout/layout.ejs +27 -32
  6. package/layout/page/about.ejs +3 -1
  7. package/layout/page/circle.ejs +1 -1
  8. package/layout/page/echarts.ejs +1 -14
  9. package/layout/page/links.ejs +2 -13
  10. package/layout/page/rss.ejs +10 -8
  11. package/layout/page/says.ejs +1 -0
  12. package/layout/partial/body.ejs +0 -1
  13. package/layout/partial/compoment/about/award.ejs +3 -1
  14. package/layout/partial/compoment/about/hobbies.ejs +44 -35
  15. package/layout/partial/compoment/about/other.ejs +68 -60
  16. package/layout/partial/compoment/aside/asideFlipCard.ejs +67 -3
  17. package/layout/partial/compoment/aside/asideHistory.ejs +49 -0
  18. package/layout/partial/compoment/aside/asideNewestPost.ejs +1 -1
  19. package/layout/partial/compoment/aside/asidePower.ejs +3 -3
  20. package/layout/partial/compoment/aside/asideSwitch.ejs +6 -0
  21. package/layout/partial/compoment/aside/asideToc.ejs +1 -1
  22. package/layout/partial/compoment/aside/asideWebInfo.ejs +8 -8
  23. package/layout/partial/compoment/aside/asideWelcome.ejs +33 -0
  24. package/layout/partial/compoment/circle/angle.ejs +2 -2
  25. package/layout/partial/compoment/circle/content.ejs +8 -11
  26. package/layout/partial/compoment/dorakika/rightmenu.ejs +90 -105
  27. package/layout/partial/compoment/hometop/bbTimeList.ejs +1 -1
  28. package/layout/partial/compoment/hometop/groupTag.ejs +1 -1
  29. package/layout/partial/compoment/hometop/topGroup.ejs +11 -18
  30. package/layout/partial/compoment/inject/body.ejs +20 -7
  31. package/layout/partial/compoment/inject/head.ejs +67 -3
  32. package/layout/partial/compoment/links/angle.ejs +26 -0
  33. package/layout/partial/compoment/links/banner.ejs +2 -2
  34. package/layout/partial/compoment/mixins/pagination.ejs +2 -2
  35. package/layout/partial/compoment/nav/right.ejs +6 -6
  36. package/layout/partial/compoment/post/award.ejs +30 -22
  37. package/layout/partial/compoment/post/copyright.ejs +10 -8
  38. package/layout/partial/compoment/post/postMeta.ejs +21 -19
  39. package/layout/partial/compoment/says/saysBottom.ejs +3 -3
  40. package/layout/partial/compoment/says/saysContent.ejs +0 -1
  41. package/layout/partial/compoment/says/saysFunction.ejs +15 -0
  42. package/layout/partial/compoment/third-party/comments/comment.ejs +1 -1
  43. package/layout/partial/compoment/third-party/comments/twikoo.ejs +2 -1
  44. package/layout/partial/compoment/third-party/search/algolia-search.ejs +2 -2
  45. package/layout/partial/compoment/third-party/search/local-search.ejs +2 -2
  46. package/layout/partial/console.ejs +10 -4
  47. package/layout/partial/footer.ejs +11 -9
  48. package/layout/partial/nav.ejs +2 -2
  49. package/layout/partial/sidebar.ejs +2 -2
  50. package/layout/post.ejs +19 -3
  51. package/package.json +4 -5
  52. package/scripts/event/welcome.js +6 -7
  53. package/scripts/helper/charts.js +45 -34
  54. package/scripts/helper/randomLinks.js +1 -1
  55. package/scripts/helper/related_post.js +11 -4
  56. package/scripts/helper/themeJsExport.js +12 -10
  57. package/scripts/tags/fold.js +2 -3
  58. package/scripts/tags/note.js +6 -2
  59. package/scripts/tags/tabs.js +2 -2
  60. package/source/css/main.css +79 -265
  61. package/source/css/search/algolia-search.css +1 -1
  62. package/source/css/search/local-search.css +1 -1
  63. package/source/css/var.css +3 -0
  64. package/source/img/default.png +0 -0
  65. package/source/img/error_load.png +0 -0
  66. package/source/img/logo-horizontal_version.png +0 -0
  67. package/source/img/pwa/16.png +0 -0
  68. package/source/img/pwa/180.png +0 -0
  69. package/source/img/pwa/192.png +0 -0
  70. package/source/img/pwa/32.png +0 -0
  71. package/source/img/pwa/512.png +0 -0
  72. package/source/img/pwa/logo.png +0 -0
  73. package/source/img/pwa/siteicon/splash-1125x2436.png +0 -0
  74. package/source/img/pwa/siteicon/splash-1136x640.png +0 -0
  75. package/source/img/pwa/siteicon/splash-1170x2532.png +0 -0
  76. package/source/img/pwa/siteicon/splash-1179x2556.png +0 -0
  77. package/source/img/pwa/siteicon/splash-1242x2208.png +0 -0
  78. package/source/img/pwa/siteicon/splash-1242x2688.png +0 -0
  79. package/source/img/pwa/siteicon/splash-1248x2778.png +0 -0
  80. package/source/img/pwa/siteicon/splash-1290x2796.png +0 -0
  81. package/source/img/pwa/siteicon/splash-1334x750.png +0 -0
  82. package/source/img/pwa/siteicon/splash-1536x2048.png +0 -0
  83. package/source/img/pwa/siteicon/splash-1620x2160.png +0 -0
  84. package/source/img/pwa/siteicon/splash-1668x2224.png +0 -0
  85. package/source/img/pwa/siteicon/splash-1668x2388.png +0 -0
  86. package/source/img/pwa/siteicon/splash-1792x828.png +0 -0
  87. package/source/img/pwa/siteicon/splash-2048x1536.png +0 -0
  88. package/source/img/pwa/siteicon/splash-2048x2732.png +0 -0
  89. package/source/img/pwa/siteicon/splash-2160x1620.png +0 -0
  90. package/source/img/pwa/siteicon/splash-2208x1242.png +0 -0
  91. package/source/img/pwa/siteicon/splash-2224x1668.png +0 -0
  92. package/source/img/pwa/siteicon/splash-2388x1668.png +0 -0
  93. package/source/img/pwa/siteicon/splash-2436x1125.png +0 -0
  94. package/source/img/pwa/siteicon/splash-2532x1170.png +0 -0
  95. package/source/img/pwa/siteicon/splash-2556x1179.png +0 -0
  96. package/source/img/pwa/siteicon/splash-2688x1242.png +0 -0
  97. package/source/img/pwa/siteicon/splash-2732x2048.png +0 -0
  98. package/source/img/pwa/siteicon/splash-2778x1248.png +0 -0
  99. package/source/img/pwa/siteicon/splash-2796x1290.png +0 -0
  100. package/source/img/pwa/siteicon/splash-640x1136.png +0 -0
  101. package/source/img/pwa/siteicon/splash-750x1334.png +0 -0
  102. package/source/img/pwa/siteicon/splash-828x1792.png +0 -0
  103. package/source/img/solitude-show.jpg +0 -0
  104. package/source/js/commentBarrage.js +145 -136
  105. package/source/js/extend/covercolor/local.js +104 -94
  106. package/source/js/extend/search/algolia-search.js +11 -0
  107. package/source/js/extend/search/local-search.js +12 -1
  108. package/source/js/main.js +212 -27
  109. package/source/js/rightmenu.js +402 -0
  110. package/source/js/txmap.js +236 -0
  111. package/source/lib/chuckle-post-ai.js +1 -0
  112. package/source/lib/circle.min.js +1 -0
  113. package/source/lib/friends_post.js +4 -98
  114. package/source/lib/snackbar.min.js +9 -0
  115. package/source/lib/view-image.min.js +6 -0
  116. package/scripts/filter/katex.js +0 -25
  117. package/scripts/tags/expand.js +0 -4
  118. package/source/img/power.png +0 -0
  119. package/source/js/circle.js +0 -1828
  120. package/source/js/extend/covercolor/web.js +0 -137
  121. package/source/js/post_ai.js +0 -517
  122. package/source/lib/snackbar.js +0 -16
  123. package/source/lib/view-image.js +0 -13
  124. /package/source/lib/{bundle.js → bundle.min.js} +0 -0
  125. /package/source/lib/{lazyload.js → lazyload.min.js} +0 -0
package/_config.yml CHANGED
@@ -3,81 +3,82 @@ 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/10/31/6540daf117d20.png # 网页icon
7
- icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 页脚的icon、加载动画默认的icon
8
- icp: 湘ICP备2023015327号 # ICP 例如:湘ICP备2023015327号
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
+ icp: # ICP 例如:湘ICP备2023015327号
9
9
 
10
10
 
11
11
  # 导航栏
12
12
  nav:
13
13
  #导航栏左侧
14
14
  left:
15
- enable: true
15
+ enable: false
16
16
  menu:
17
- 项目:
18
- Solitude:
19
- icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png
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
  menu:
23
- 文库:
24
- url: false
25
- child:
26
- 文章列表:
27
- url: /archives/
28
- icon: ri-archive-fill
29
- 全部分类:
30
- url: /categories/
31
- icon: ri-send-backward
32
- 全部标签:
33
- url: /tags/
34
- icon: ri-price-tag-3-fill
35
- 友链:
36
- url: false
37
- child:
38
- 鱼塘:
39
- url: /moments/
40
- icon: ri-bubble-chart-fill
41
- 友情链接:
42
- url: /links/
43
- icon: ri-links-line
44
- 宝藏博主:
45
- url: javascript:travelling()
46
- icon: ri-gift-fill
47
- 我的:
48
- url: false
49
- child:
50
- 装备:
51
- url: /equipment/
52
- icon: ri-macbook-fill
53
- 工具箱:
54
- url: /tlink/
55
- icon: ri-tools-fill
56
- 关于:
57
- url: false
58
- child:
59
- 关于本站:
60
- url: /about/
61
- icon: ri-user-smile-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
62
63
 
63
64
 
64
65
  # 导航栏右侧快捷菜单 (true,false)
65
66
  right: # @todo 允许用户自定义
66
- travellings: true #开往
67
- random: true #
68
- console: true #控制台
67
+ travellings: false #开往
68
+ random: false # 随机文章跳转
69
+ console: false #控制台
69
70
 
70
71
  # 自定义icon
71
72
  icon:
72
- customicon: https://cdn3.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css
73
+ customicon:
73
74
 
74
75
  # 首页顶部样式
75
76
  hometop:
76
77
  bbtime: false # 即刻顶部是否开启
77
78
  banner:
78
- enable: true # 是否打开顶部banner
79
+ enable: false # 是否打开顶部banner
79
80
  title: 宁静致远<br>热爱生活 # 左上角显示文字
80
- url: WWW.SONDY.TOP # title下方小字
81
+ url: Hexo-Theme-Solitude # title下方小字
81
82
  # 轮播icon
82
83
  icon:
83
84
  HTML:
@@ -109,28 +110,28 @@ hometop:
109
110
  categoryGroup:
110
111
  G1:
111
112
  name: 必看精选
112
- icon: ri-git-repository-fill
113
+ icon: scoicon sco-star-smile-fill
113
114
  url: /tags/精选/
114
115
  G2:
115
116
  name: 热门文章
116
- icon: ri-fire-fill
117
+ icon: scoicon sco-fire-fill
117
118
  url: /categories/热门/
118
119
  G3:
119
120
  name: 实用教程
120
- icon: ri-code-box-fill
121
+ icon: scoicon sco-book-mark-fill
121
122
  url: /tags/教程/
122
123
 
123
124
  # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
124
125
  recommendList:
125
126
  sup: 置顶 # 左上角显示文字
126
- title: 缘木求鱼 # 左下角大字
127
- url: /about/ # 点击跳转链接
127
+ title: Solitude主题文档 # 左下角大字
128
+ url: https://docs.wzsco.top/ # 点击跳转链接
128
129
  img: /img/default.png # 显示背景
129
130
  color: '#ff0000' # 背景颜色
130
131
 
131
132
  # 侧边栏
132
133
  aside:
133
- # 值:about(关于我)、power(爱发电)、newestPost(最新文章)、allInfo(网站信息)、flip(公众号二维码)
134
+ # 值:about(关于我)、power(爱发电)、newestPost(最新文章)、allInfo(网站信息)、flip(公众号二维码)、welcome(个性定位)、history(那年今日)
134
135
  home: # 在主页显示的侧边栏信息
135
136
  noSticky: "about"
136
137
  Sticky: "allInfo"
@@ -148,7 +149,7 @@ aside:
148
149
  # 侧边栏个人信息卡片
149
150
  card:
150
151
  author:
151
- img: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 头像
152
+ img: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg # 头像
152
153
  js: https://cdn3.codesign.qq.com/icons/XgRxnjPG4VZLmqr/latest/iconfont.js # 自定义图标js(用于显示带颜色的状态表情)
153
154
  state: "#sco-smile" # 状态表情(使用symbol)
154
155
  content: 分享自己对编程的<b>热爱</b>,对美好生活的<b>向往</b>,对知识海洋<b>探索历程</b>。 # 文案1
@@ -156,33 +157,46 @@ aside:
156
157
  # 个人信息卡片底部的小图标,按照例子填写
157
158
  information:
158
159
  Github:
159
- icon: ri-github-fill
160
+ icon: scoicon sco-github-line
160
161
  url: https://github.com/DuoSco/Hexo-Theme-slitude
161
162
  Bilibili:
162
- icon: ri-bilibili-fill
163
+ icon: scoicon sco-bilibili-line
163
164
  url: https://space.bilibili.com/1329819902
164
165
  # 跳转按钮
165
166
  button:
166
167
  text: 了解更多
167
168
  url: /about/
168
169
  # 公众号二维码
169
- flip: # 填url
170
+ flip:
171
+ favicon: # 右下角头像
170
172
  face: # 正面
171
173
  backface: # 鼠标悬停翻转图片
174
+ # 个性定位
175
+ welcome:
176
+ enable: false
177
+ title: #【选填】留空将默认显示为:来访者
178
+ icon:
179
+ key: # 腾讯key
180
+ longitude: 112.8455033596802 # 经度
181
+ Latitude: 26.430308353457896 # 纬度
182
+ # 那年今日
183
+ history:
184
+ enable: false
185
+ title: #【选填】留空将默认显示为:那年今日
186
+ icon:
172
187
  # 页面目录
173
188
  toc:
174
189
  post: true # 在文章页显示
175
190
  page: false # 在任意页显示
176
191
 
177
-
178
192
  # 建站信息
179
193
  siteinfo:
180
- postcount: true # 文章数
194
+ postcount: false # 文章数
181
195
  wordcount: false # 总字数
182
196
  pv: false # 访问量
183
197
  uv: false # 访客数
184
198
  updatetime: false # 最后更新日期
185
- runtimeenable: true # 建站时间
199
+ runtimeenable: false # 建站时间
186
200
  runtime: '2023-04-20 00:00:00' # 格式:yyyy-MM-dd hh-mm-ss
187
201
 
188
202
  # Footer Settings
@@ -191,41 +205,41 @@ footer:
191
205
  # 底部上方一排图标
192
206
  information:
193
207
  left: # 左侧显示图标
194
- # Github:
195
- # icon: ri-github-fill
196
- # url: https://github.com/wleelw
197
- # Mail:
198
- # icon: ri-mail-fill
199
- # url: mailto:wleelw@sondy.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
200
214
  right: # 右侧显示图标
201
- # Bilibili:
202
- # icon: ri-bilibili-fill
203
- # url: https://space.bilibili.com/1329819902
204
- # 抖音:
205
- # icon: ri-tiktok-line
206
- # 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/
207
221
  # 底部导航栏
208
222
  group: # 从左至右
209
- # 导航:
210
- # 归档: /archives/
211
- # 分类: /categories/
212
- # 标签: /tags/
213
- # 服务:
214
- # 阿里云: https://aliyun.com/
215
- # 51la统计: https://v6.51.la/
216
- # 百度统计: https://tongji.baidu.com/
217
- # 支持:
218
- # 打赏记录: /about/
219
- # 协议:
220
- # Cookies: /cookies/
221
- # 用户协议: /privacy/
222
- # 版权协议: /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/
223
237
 
224
238
  # 底部随机友链
225
239
  randomlink: false
226
240
  # rss
227
241
  rss:
228
- enable: true
242
+ enable: false
229
243
  wechatOA: # 微信公众号链接
230
244
  emailOA: # 邮箱链接
231
245
  rss: # rss订阅链接
@@ -249,18 +263,18 @@ post:
249
263
  copyright: 原创
250
264
  # 顶部文章简介
251
265
  meta:
252
- date: true # 发布日期
253
- updated: true # 更新日期
254
- locate: true # 位置
255
- wordcount: true # 字数
256
- readtime: true # 访问
257
- pv: true # 浏览量
258
- comment: true # 评论数
266
+ date: false # 发布日期
267
+ updated: false # 更新日期
268
+ locate: false # 位置
269
+ wordcount: false # 字数
270
+ readtime: false # 访问
271
+ pv: false # 浏览量
272
+ comment: false # 评论数
259
273
  # 打赏
260
274
  award:
261
275
  enable: false # 开启后文章底部显示打赏按钮
262
- wechat: https://p.sondy.top/blog/img/20230913203219.png!cover # 微信收款码
263
- alipay: https://p.sondy.top/blog/img/20230916173807.png!cover # 支付宝收款码
276
+ wechat: https://bu.dusays.com/2023/11/07/6549e79364fa3.png # 微信收款码
277
+ alipay: https://bu.dusays.com/2023/11/07/6549e79d02bd6.png # 支付宝收款码
264
278
  url: /about # 打赏统计页面链接
265
279
  # 文章颜色获取
266
280
  covercolor: #文章cover取色
@@ -268,7 +282,7 @@ post:
268
282
  local: true
269
283
 
270
284
  # 关于界面
271
- about: true
285
+ about: false
272
286
 
273
287
  # 404 页面
274
288
  errorpage:
@@ -278,29 +292,29 @@ errorpage:
278
292
 
279
293
  # 懒加载
280
294
  lazyload:
281
- enable: true
295
+ enable: false
282
296
  placeholder: /img/loading.gif # 加载中显示图片
283
297
  errorimg: /img/error_load.png # 加载失败显示图片
284
298
 
285
299
  # 图片灯箱
286
- lightbox: true
300
+ lightbox: false
287
301
 
288
302
  #代码高亮增强
289
303
  hightlight:
290
- enable: true
304
+ enable: false
291
305
  hightlimit: 200
292
306
 
293
307
  # 加载动画
294
308
  loading:
295
- fullpage: true
296
- pace: true
309
+ fullpage: false
310
+ pace: false
297
311
 
298
312
  # 第三方设置
299
313
  thirdparty:
300
- wordcount: true # 字数统计
314
+ wordcount: false # 字数统计
301
315
  busuanzi:
302
- enable: true
303
- usecomment: true #当评论系统开启时文章页面使用评论系统的统计数据
316
+ enable: false
317
+ usecomment: false #当评论系统开启时文章页面使用评论系统的统计数据
304
318
  search: # 搜索
305
319
  algolia_search:
306
320
  enable: false
@@ -312,40 +326,42 @@ thirdparty:
312
326
  CDN:
313
327
 
314
328
  aplayer: # 播放器
315
- enable: true
329
+ enable: false
316
330
  server: tencent # netease, tencent, kugou, xiami, baidu
317
331
  id: 8651639768 # 歌单ID
318
332
  api: "https://api.injahow.cn/meting/?server=:server&type=:type&id=:id&auth=:auth&r=:r" #自定义api
319
333
  #中控台拓展
320
- consolePlus: true
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
321
357
 
322
358
  # 评论
323
359
  comment:
324
360
  enable: false
325
361
  twikoo:
326
362
  envId: https://twikoo.sondy.top
327
- path: window.location.pathname
328
363
  lang: 'zh-CN'
329
-
330
- ai: # 文章页面AI
331
- enable: false
332
-
333
- # 朋友圈配置
334
- circle:
335
- api: https://circle.sondy.top/ # api 地址
336
- error_img: /img/theme/avatar.png # 头像加载失败显示错误图片
337
- sort_rule: created # 排序规则
338
- expire_days: 1 # 文章缓存天数
339
- page_init_number: 12 # 默认加载文章数,默认10
340
- page_turning_number: 12 # 加载更多文章数,默认10
341
- angle: # 钓鱼
342
- enable: false
343
- appjs: '/js/circle.js' # 主题appjs
344
- bundlejs: '/lib/bundle.js' # 主题bundejs
345
-
346
- # 文章统计
347
- echarts:
348
- js: https://cdn.bootcdn.net/ajax/libs/echarts/5.4.2/echarts.min.js
364
+ accessToken: # accessToken
349
365
 
350
366
  # 插入代码到头部 </head> 之前 和 底部 </body> 之前
351
367
  # 插入额外代码 如:统计,广告等
@@ -359,6 +375,8 @@ related_post:
359
375
  limit: 2 # 推荐文章数量
360
376
  date_type: created # 根据创建日期(created)或是更新日期(updated)
361
377
 
378
+ # rightmenu(右键菜单)
379
+
362
380
  # 站点验证
363
381
  verify:
364
382
  # 百度
@@ -410,23 +428,23 @@ pwa:
410
428
  # 非必要勿动
411
429
  cdn:
412
430
  head:
413
- remixicon: https://cdn.bootcdn.net/ajax/libs/remixicon/3.5.0/remixicon.css
431
+ snackbarcss: /lib/snackbar.min.css
432
+ scoicon: https://cdn3.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css
433
+ aplayercss: https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.css
434
+ swipercss: https://cdn.bootcdn.net/ajax/libs/Swiper/9.2.4/swiper-bundle.min.css
435
+ twikoojs: https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.20/twikoo.all.min.js
414
436
  instantsearch: https://cdn.bootcdn.net/ajax/libs/instantsearch.js/4.9.1/instantsearch.production.min.js
415
- twikoojs: https://cdn.bootcdn.net/ajax/libs/twikoo/1.6.16/twikoo.all.min.js
416
437
  algolia: https://cdn.bootcdn.net/ajax/libs/algoliasearch/4.9.3/algoliasearch-lite.umd.min.js
417
438
  pacejs: https://cdn.bootcdn.net/ajax/libs/pace/1.2.4/pace.min.js
418
- snackbarcss: /lib/snackbar.min.css
419
439
  body:
440
+ viewimagejs: /lib/view-image.min.js
441
+ waterfalljs: /lib/waterfall.min.js
442
+ lazyloadjs: /lib/lazyload.min.js
443
+ snackbarjs: /lib/snackbar.min.js
420
444
  swiperjs: https://cdn.bootcdn.net/ajax/libs/Swiper/9.2.4/swiper-bundle.min.js
421
445
  busuanzijs: https://cdn.bootcdn.net/ajax/libs/busuanzi/2.3.0/bsz.pure.mini.min.js
422
- swipercss: https://cdn.bootcdn.net/ajax/libs/Swiper/9.2.4/swiper-bundle.min.css
423
446
  pjaxjs: https://cdn.bootcdn.net/ajax/libs/pjax/0.2.8/pjax.min.js
424
- viewimagejs: /lib/view-image.js
425
- waterfalljs: /lib/waterfall.min.js
426
- lazyloadjs: /lib/lazyload.js
427
- snackbarjs: /lib/snackbar.js
428
- aplayercss: https://cdn.bootcdn.net/ajax/libs/aplayer/1.9.1/APlayer.min.css
429
- aplayerjs: https://cdn.bootcdn.net/ajax/libs/aplayer/1.9.1/APlayer.min.js
447
+ aplayerjs: https://cdn.bootcdn.net/ajax/libs/aplayer/1.10.1/APlayer.min.js
430
448
  metingjs: https://cdn.bootcdn.net/ajax/libs/meting/2.0.1/Meting.min.js
431
449
  katexcss: https://cdn.bootcdn.net/ajax/libs/KaTeX/0.16.6/katex.min.css
432
450
  katexjs: https://cdn.bootcdn.net/ajax/libs/KaTeX/0.16.6/katex.min.js
package/layout/404.ejs CHANGED
@@ -7,7 +7,7 @@
7
7
  <%= theme.errorpage.text %>
8
8
  </div>
9
9
  <a class="button--animated" href="/">
10
- <i class="ri-external-link-fill"></i>
10
+ <i class="scoicon sco-external-link"></i>
11
11
  回到主页
12
12
  </a>
13
13
  </div>
package/layout/layout.ejs CHANGED
@@ -1,35 +1,30 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="<%= config.language %>" data-theme="light">
3
- <head>
4
- <%- partial('partial/head', {cache: true}) %>
5
- </head>
6
- <body id="body">
7
- <% if(theme.loading.fullpage){ %>
8
- <%- partial('partial/loading', {cache: true}) %>
9
- <% } %>
10
- <%- partial('partial/console', {cache: true}) %>
11
- <%- partial('partial/sidebar', {cache: true}) %>
12
- <%- partial('partial/compoment/dorakika/rightmenu', {cache: true}) %>
13
- <% if(page.type !== '404'){ %>
14
- <div class="<%= is_post() ? 'post' : 'page' %>" id="body-wrap">
15
- <%- partial('partial/header') %>
16
- <%- body %>
17
- <footer id="footer">
18
- <%- partial('partial/footer', {cache: true}) %>
19
- </footer>
20
- </div>
21
- <% }else{ %>
22
- <div class="error" id="body-wrap">
23
- <%- body %>
24
- </div>
25
- <% } %>
26
- <script>
27
- (function (){
28
- console.log= function(){}
29
- })()
30
- </script>
31
- <%- partial('partial/body', {cache: true}) %>
32
- <%- partial('partial/compoment/third-party/search/index', {cache: true}) %>
33
- <%- partial('partial/compoment/third-party/music', {cache: true}) %>
34
- </body>
3
+ <head>
4
+ <%- partial('partial/head', {cache: true}) %>
5
+ </head>
6
+ <body id="body">
7
+ <% if(theme.loading.fullpage){ %>
8
+ <%- partial('partial/loading', {cache: true}) %>
9
+ <% } %>
10
+ <%- partial('partial/console', {cache: true}) %>
11
+ <%- partial('partial/sidebar', {cache: true}) %>
12
+
13
+ <% if(page.type !== '404'){ %>
14
+ <div class="<%= is_post() ? 'post' : 'page' %>" id="body-wrap">
15
+ <%- partial('partial/header') %>
16
+ <%- body %>
17
+ <footer id="footer">
18
+ <%- partial('partial/footer', {cache: true}) %>
19
+ </footer>
20
+ </div>
21
+ <% }else{ %>
22
+ <div class="error" id="body-wrap">
23
+ <%- body %>
24
+ </div>
25
+ <% } %>
26
+ <%- partial('partial/body', {cache: true}) %>
27
+ <%- partial('partial/compoment/third-party/search/index', {cache: true}) %>
28
+ <%- partial('partial/compoment/third-party/music', {cache: true}) %>
29
+ </body>
35
30
  </html>
@@ -9,5 +9,7 @@
9
9
  <%- partial('partial/compoment/about/other' ) %>
10
10
  <%- partial('partial/compoment/about/award' ) %>
11
11
  </div>
12
- <script src="<%= theme.echarts.js %>" rel="external nofollow"></script>
12
+ <% if(theme.thirdparty.echarts.enable){%>
13
+ <%- js(theme.thirdparty.echarts.js) %>
14
+ <%} %>
13
15
  <% } %>
@@ -1,5 +1,5 @@
1
1
  <%- partial('partial/compoment/circle/banner') %>
2
- <% if(theme.circle.angle.enable){ %>
2
+ <% if(theme.thirdparty.circle.angle.enable){ %>
3
3
  <%- partial('partial/compoment/circle/angle') %>
4
4
  <% } %>
5
5
  <%- partial('partial/compoment/circle/content') %>
@@ -1,14 +1 @@
1
- <script src="<%= theme.echarts.js %>" rel="external nofollow"></script>
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 %>
@@ -1,19 +1,8 @@
1
1
  <div class="flink" id="banners">
2
2
  <%- partial('partial/compoment/links/banner') %>
3
3
  </div>
4
- <% if(theme.circle.angle.enable){ %>
5
- <div class="title-h2-a">
6
- <div class="title-h2-a-left"><h2 style="padding-top: 0;margin:0.6rem 0 0 0;">随机文章</h2>
7
- <a id="random-post-start" href="javascript:fetchRandomPost();" rel="external nofollow" data-pjax-state=""
8
- style="transition-duration: 0.3s; transform: rotate(9000deg); opacity: 1;">
9
- <i class="ri-refresh-line"></i>
10
- </a>
11
- </div>
12
- <div class="title-h2-a-right">
13
- <a class="random-post-all" href="/circle/" data-pjax-state="">查看鱼塘</a>
14
- </div>
15
- </div>
16
- <div id="random-post"></div>
4
+ <% if(theme.thirdparty.circle.angle.enable){ %>
5
+ <%- partial('partial/compoment/links/angle') %>
17
6
  <% } %>
18
7
  <div class="flink" id="article-container">
19
8
  <% site.data.links.links.forEach(data => { %>
@@ -1,37 +1,39 @@
1
1
  <main class="layout hide-aside" id="content-inner">
2
2
  <div id="page">
3
3
  <div class="rss-plan-list">
4
- <a class="rss-plan-item rss-plan-wechat" href="<%- theme.footer.rss.wechatOA %>" title="公众号" target="_blank">
4
+ <a class="rss-plan-item rss-plan-wechat" href="<%- theme.footer.rss.wechatOA %>" title="公众号"
5
+ target="_blank">
5
6
  <div class="rss-plan-description">推送精选文章<br>推送全文</div>
6
7
  <div class="rss-plan-info-group">
7
8
  <div class="rss-plan-title">公众号订阅</div>
8
9
  <div class="rss-plan-info">推荐的订阅方式</div>
9
10
  <img class="rss-plan-icon" src="https://bu.dusays.com/2023/11/01/6541d14a4de78.png" alt="wechat">
10
11
  </div>
11
- </a><a class="rss-plan-item rss-plan-mail" href="<%- theme.footer.rss.emailOA %>" rel="external nofollow"
12
- title="竹白" target="_blank">
12
+ </a>
13
+ <a class="rss-plan-item rss-plan-mail" href="<%- theme.footer.rss.emailOA %>" rel="external nofollow"
14
+ title="email" target="_blank">
13
15
  <div class="rss-plan-description">推送全部文章<br>推送封面与简介</div>
14
16
  <div class="rss-plan-info-group">
15
17
  <div class="rss-plan-title">邮件订阅</div>
16
18
  <div class="rss-plan-info">推荐的订阅方式</div>
17
- <img class="rss-plan-icon" src="https://bu.dusays.com/2023/11/01/6541d16c3ea22.png" alt="wechat">
19
+ <img class="rss-plan-icon" src="https://bu.dusays.com/2023/11/01/6541d16c3ea22.png" alt="email">
18
20
  </div>
19
21
  </a><a class="rss-plan-item rss-plan-rss" href="<%- theme.footer.rss.rssOA %>" title="rss" target="_blank">
20
22
  <div class="rss-plan-description">推送全部文章<br>推送简介</div>
21
23
  <div class="rss-plan-info-group">
22
24
  <div class="rss-plan-title">RSS</div>
23
25
  <div class="rss-plan-info">备用订阅方式</div>
24
- <img class="rss-plan-icon" src="https://bu.dusays.com/2023/11/01/6541d184e2a09.png" alt="wechat">
26
+ <img class="rss-plan-icon" src="https://bu.dusays.com/2023/11/01/6541d184e2a09.png" alt="rss">
25
27
  </div>
26
28
  </a></div>
27
- <%- page.content %>
29
+ <%- page.content %>
28
30
 
29
31
  <% if(page.comment){ %>
30
32
  <%- partial('partial/compoment/third-party/comments/comment') %>
31
33
  <% } %>
32
34
  </div>
33
35
 
34
- <% if(page.aside){%>
36
+ <% if(page.aside){ %>
35
37
  <%- partial('partial/compoment/aside/aside') %>
36
- <%} %>
38
+ <% } %>
37
39
  </main>