hexo-theme-solitude 1.0.0 → 1.1.0

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 (75) hide show
  1. package/README.md +12 -7
  2. package/_config.yml +117 -99
  3. package/layout/404.ejs +1 -1
  4. package/layout/layout.ejs +27 -32
  5. package/layout/page/links.ejs +1 -12
  6. package/layout/page/says.ejs +1 -0
  7. package/layout/partial/body.ejs +0 -1
  8. package/layout/partial/compoment/about/award.ejs +2 -0
  9. package/layout/partial/compoment/about/hobbies.ejs +44 -35
  10. package/layout/partial/compoment/about/other.ejs +68 -60
  11. package/layout/partial/compoment/aside/asideFlipCard.ejs +67 -3
  12. package/layout/partial/compoment/aside/asideHistory.ejs +49 -0
  13. package/layout/partial/compoment/aside/asideNewestPost.ejs +1 -1
  14. package/layout/partial/compoment/aside/asidePower.ejs +3 -3
  15. package/layout/partial/compoment/aside/asideSwitch.ejs +6 -0
  16. package/layout/partial/compoment/aside/asideToc.ejs +1 -1
  17. package/layout/partial/compoment/aside/asideWebInfo.ejs +8 -8
  18. package/layout/partial/compoment/aside/asideWelcome.ejs +33 -0
  19. package/layout/partial/compoment/circle/angle.ejs +1 -1
  20. package/layout/partial/compoment/circle/content.ejs +2 -5
  21. package/layout/partial/compoment/dorakika/rightmenu.ejs +90 -105
  22. package/layout/partial/compoment/hometop/bbTimeList.ejs +1 -1
  23. package/layout/partial/compoment/hometop/groupTag.ejs +1 -1
  24. package/layout/partial/compoment/hometop/topGroup.ejs +11 -18
  25. package/layout/partial/compoment/inject/body.ejs +19 -4
  26. package/layout/partial/compoment/inject/head.ejs +68 -3
  27. package/layout/partial/compoment/links/angle.ejs +26 -0
  28. package/layout/partial/compoment/links/banner.ejs +2 -2
  29. package/layout/partial/compoment/mixins/pagination.ejs +2 -2
  30. package/layout/partial/compoment/nav/right.ejs +6 -6
  31. package/layout/partial/compoment/post/postMeta.ejs +10 -10
  32. package/layout/partial/compoment/says/saysBottom.ejs +3 -3
  33. package/layout/partial/compoment/says/saysContent.ejs +0 -1
  34. package/layout/partial/compoment/says/saysFunction.ejs +15 -0
  35. package/layout/partial/compoment/third-party/comments/comment.ejs +1 -1
  36. package/layout/partial/compoment/third-party/comments/twikoo.ejs +2 -1
  37. package/layout/partial/compoment/third-party/search/algolia-search.ejs +2 -2
  38. package/layout/partial/compoment/third-party/search/local-search.ejs +2 -2
  39. package/layout/partial/console.ejs +10 -4
  40. package/layout/partial/footer.ejs +6 -9
  41. package/layout/partial/nav.ejs +1 -1
  42. package/layout/partial/sidebar.ejs +2 -2
  43. package/layout/post.ejs +18 -2
  44. package/package.json +5 -6
  45. package/scripts/event/welcome.js +6 -7
  46. package/scripts/helper/randomLinks.js +1 -1
  47. package/scripts/helper/related_post.js +1 -1
  48. package/scripts/helper/themeJsExport.js +12 -10
  49. package/scripts/tags/hide.js +70 -0
  50. package/scripts/tags/tabs.js +1 -1
  51. package/source/css/main.css +55 -106
  52. package/source/css/search/algolia-search.css +1 -1
  53. package/source/css/search/local-search.css +1 -1
  54. package/source/css/var.css +3 -0
  55. package/source/img/error_load.png +0 -0
  56. package/source/img/pwa/16.png +0 -0
  57. package/source/img/pwa/32.png +0 -0
  58. package/source/js/commentBarrage.js +145 -136
  59. package/source/js/extend/search/algolia-search.js +11 -0
  60. package/source/js/extend/search/local-search.js +12 -1
  61. package/source/js/main.js +203 -21
  62. package/source/js/rightmenu.js +402 -0
  63. package/source/js/txmap.js +236 -0
  64. package/source/lib/chuckle-post-ai.js +1 -0
  65. package/source/lib/circle.min.js +1 -0
  66. package/source/lib/friends_post.js +4 -98
  67. package/source/lib/snackbar.min.js +9 -0
  68. package/source/lib/view-image.min.js +6 -0
  69. package/source/img/power.png +0 -0
  70. package/source/js/circle.js +0 -1828
  71. package/source/js/post_ai.js +0 -517
  72. package/source/lib/snackbar.js +0 -16
  73. package/source/lib/view-image.js +0 -13
  74. /package/source/lib/{bundle.js → bundle.min.js} +0 -0
  75. /package/source/lib/{lazyload.js → lazyload.min.js} +0 -0
package/README.md CHANGED
@@ -1,12 +1,10 @@
1
1
  ![](https://github.com/DuoSco/Hexo-theme-solitude/assets/74389842/78b527e5-7d8e-456d-b190-859acd9ffdec)
2
2
 
3
- 原项目地址:[Acrylic-Next](https://github.com/hexo-theme-Acrylic/Hexo-Theme-Acrylic-Next)
4
-
5
- 主题预览: 👋[王卓Sco](https://solitude.wzsco.top/)
3
+ 主题预览: 👋[Demo](https://solitude.wzsco.top/) | [王卓Sco](https://blog.wzsco.top/)
6
4
 
7
5
  文档: [📖文档](https://docs.wzsco.top/)
8
6
 
9
- 主题交流群:![](https://bu.dusays.com/2023/10/31/6540af9083739.jpg)
7
+ 主题交流群:`文档内有群二维码和链接`
10
8
 
11
9
  ## 💻 安裝
12
10
 
@@ -35,18 +33,25 @@ cp -rf ./themes/solitude/_config.yml ./_config.solitude.yml
35
33
  - windows
36
34
  复制```/themes/solitude/_config.yml```此文件到hexo根目录,并重命名为```_config.solitude.yml```
37
35
 
36
+ ## 赞助我们
37
+
38
+ 由于我们是为爱发电,域名和一些零零散散的API都是由开发者承担费用,并且没有收入(学生),希望能够得到一些补充吧,谢谢🙏,即使没有赞助我们也会用心开发。
39
+
40
+ [王卓Sco](https://afdian.net/a/wleelw0u0)   [亦封](https://afdian.net/a/yife68)
41
+
38
42
  ## ✨ 贡献者
39
43
  > 欢迎你对本主题做出贡献
40
44
 
41
45
  [贡献指南](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)
42
46
 
43
- ### 原主题参与开发
47
+ ### 主题参与开发
48
+ [@王卓Sco](https://github.com/wleelw)
49
+ [@亦封](https://github.com/yife68)
44
50
  [@rootlex](https://github.com/rootlexme)
45
51
  [@timigomen](https://github.com/timigomen)
46
52
  [@Glannons](https://github.com/Glannons)
47
53
  [@Adil](https://github.com/adil-zhang)
48
- ### 新主题参与开发
49
- [@王卓Sco](https://github.com/wleelw)
54
+
50
55
  ### 主题设计
51
56
  [@张洪Heo](https://github.com/zhheo)
52
57
  ### 域名提供
package/_config.yml CHANGED
@@ -5,71 +5,72 @@ site:
5
5
  custom: Solitude #自定义内容 例如:scoicon sco-logo / 王卓Sco / https://p.sondy.top/logo.png
6
6
  siteIcon: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 网页icon
7
7
  icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png # 页脚的icon、加载动画默认的icon
8
- icp: 湘ICP备2023015327号 # ICP 例如:湘ICP备2023015327号
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
21
- # 导航栏内容
17
+ # 项目:
18
+ # Solitude:
19
+ # icon: https://bu.dusays.com/2023/10/31/6540daf117d20.png
20
+ # url: https://github.com/DuoSco/Hexo-Theme-solitude
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
67
  travellings: true #开往
67
- random: true #
68
+ random: true # 随机文章跳转
68
69
  console: true #控制台
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:
@@ -77,7 +78,7 @@ hometop:
77
78
  banner:
78
79
  enable: true # 是否打开顶部banner
79
80
  title: 宁静致远<br>热爱生活 # 左上角显示文字
80
- url: WWW.SONDY.TOP # title下方小字
81
+ url: WWW.WZSCO.TOP # 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: 主题文档 # 左下角大字
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"
@@ -156,28 +157,41 @@ 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 # 访客数
@@ -191,35 +205,35 @@ 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
@@ -324,11 +338,13 @@ comment:
324
338
  enable: false
325
339
  twikoo:
326
340
  envId: https://twikoo.sondy.top
327
- path: window.location.pathname
328
341
  lang: 'zh-CN'
342
+ accessToken: # accessToken
329
343
 
330
344
  ai: # 文章页面AI
331
345
  enable: false
346
+ key: # 前往tianli-AI 购买
347
+ rec_method: # 推荐文章方式(all:匹配数据库所有文章、web:仅当前博客文章)默认:web
332
348
 
333
349
  # 朋友圈配置
334
350
  circle:
@@ -340,8 +356,8 @@ circle:
340
356
  page_turning_number: 12 # 加载更多文章数,默认10
341
357
  angle: # 钓鱼
342
358
  enable: false
343
- appjs: '/js/circle.js' # 主题appjs
344
- bundlejs: '/lib/bundle.js' # 主题bundejs
359
+ appjs: '/lib/circle.min.js' # 主题appjs
360
+ bundlejs: '/lib/bundle.min.js' # 主题bundejs
345
361
 
346
362
  # 文章统计
347
363
  echarts:
@@ -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>
@@ -2,18 +2,7 @@
2
2
  <%- partial('partial/compoment/links/banner') %>
3
3
  </div>
4
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>
5
+ <%- partial('partial/compoment/links/angle') %>
17
6
  <% } %>
18
7
  <div class="flink" id="article-container">
19
8
  <% site.data.links.links.forEach(data => { %>
@@ -6,6 +6,7 @@
6
6
  <% const item = site.data.essay.essay_list[i];if(i >= 30)break; %>
7
7
  <li class="item">
8
8
  <%- partial('partial/compoment/says/saysContent', {item:item}) %>
9
+ <%- partial('partial/compoment/says/saysFunction', {item:item}) %>
9
10
  <hr>
10
11
  <%- partial('partial/compoment/says/saysBottom', {item:item}) %>
11
12
  </li>
@@ -1,5 +1,4 @@
1
1
  <div>
2
- <script type="text/javascript" src='/js/main.js' rel="external nofollow"></script>
3
2
  <%- partial('partial/compoment/inject/body', {cache: true}) %>
4
3
  <%- partial('partial/compoment/third-party/pjax', {cache: true}) %>
5
4
  <% if (theme.extends.body) for (const i of theme.extends.body){ %>
@@ -1,4 +1,5 @@
1
1
  <% let sum = 0; %>
2
+ <% if(site.data.about.rewardList){ %>
2
3
  <div class="author-content">
3
4
  <div class="author-content-item single reward">
4
5
  <div class="author-content-item-tips">致谢</div>
@@ -55,3 +56,4 @@
55
56
  </div>
56
57
  </div>
57
58
  </div>
59
+ <% } %>
@@ -1,44 +1,53 @@
1
1
  <div class="author-content">
2
- <div class="author-content-item game-apex" style="background: url(<%= site.data.about.game1.img %>) no-repeat top; background-size: cover;">
3
- <div class="card-content">
4
- <div class="author-content-item-tips"><%= site.data.about.game1.title %></div>
5
- <span class="author-content-item-title"><%= site.data.about.game1.subtitle %></span>
6
- <div class="content-bottom">
7
- <div class="tips"><%= site.data.about.game1.tips_left %></div>
8
- <div class="tips"><%= site.data.about.game1.tips_right %></div>
9
- </div>
10
- </div>
11
- </div>
12
- <div class="author-content-item game-jl" style="background: url(<%= site.data.about.game2.img %>) no-repeat top; background-size: cover;">
13
- <div class="card-content">
14
- <div class="author-content-item-tips"><%= site.data.about.game2.title %></div>
15
- <span class="author-content-item-title"><%= site.data.about.game2.subtitle %></span>
16
- <div class="content-bottom">
17
- <div class="tips"><%= site.data.about.game2.tips_left %></div>
18
- <div class="tips"><%= site.data.about.game2.tips_right %></div>
2
+ <% if(site.data.about.game1){ %>
3
+ <div class="author-content-item game-apex"
4
+ style="background: url(<%- site.data.about.game1.img %>) no-repeat top; background-size: cover;">
5
+ <div class="card-content">
6
+ <div class="author-content-item-tips"><%= site.data.about.game1.title %></div>
7
+ <span class="author-content-item-title"><%= site.data.about.game1.subtitle %></span>
8
+ <div class="content-bottom">
9
+ <div class="tips"><%= site.data.about.game1.tips_left %></div>
10
+ <div class="tips"><%= site.data.about.game1.tips_right %></div>
11
+ </div>
19
12
  </div>
20
13
  </div>
21
- </div>
22
- </div>
23
- <% const likes = site.data.about.likes; %>
24
- <div class="author-content">
25
- <% likes.forEach(function(like) { %>
26
- <div class="author-content-item <%= like.type %>" style="background: url(<%= like.bg %>) no-repeat center;">
14
+ <% } %>
15
+ <% if(site.data.about.game2){ %>
16
+ <div class="author-content-item game-jl"
17
+ style="background: url(<%= site.data.about.game2.img %>) no-repeat top; background-size: cover;">
27
18
  <div class="card-content">
28
- <div class="author-content-item-tips"><%= like.tips %></div>
29
- <span class="author-content-item-title"><%= like.title %></span>
19
+ <div class="author-content-item-tips"><%= site.data.about.game2.title %></div>
20
+ <span class="author-content-item-title"><%= site.data.about.game2.subtitle %></span>
30
21
  <div class="content-bottom">
31
- <div class="tips"><%= like.subtips %></div>
32
- <% if(like.button){ %>
33
- <div class="banner-button-group">
34
- <a class="banner-button" href="<%= like.button_link %>" target="_blank" rel="noopener nofollow">
35
- <i class="ri-arrow-right-circle-fill"></i>
36
- <span class="banner-button-text"><%= like.button_text %></span>
37
- </a>
38
- </div>
39
- <% } %>
22
+ <div class="tips"><%= site.data.about.game2.tips_left %></div>
23
+ <div class="tips"><%= site.data.about.game2.tips_right %></div>
40
24
  </div>
41
25
  </div>
42
26
  </div>
43
- <% }); %>
27
+ <% } %>
44
28
  </div>
29
+ <% if(site.data.about.likes){ %>
30
+ <% const likes = site.data.about.likes; %>
31
+ <div class="author-content">
32
+ <% likes.forEach(function(like) { %>
33
+ <div class="author-content-item <%= like.type %>" style="background: url(<%= like.bg %>) no-repeat center;">
34
+ <div class="card-content">
35
+ <div class="author-content-item-tips"><%= like.tips %></div>
36
+ <span class="author-content-item-title"><%= like.title %></span>
37
+ <div class="content-bottom">
38
+ <div class="tips"><%= like.subtips %></div>
39
+ <% if(like.button){ %>
40
+ <div class="banner-button-group">
41
+ <a class="banner-button" href="<%= like.button_link %>" target="_blank"
42
+ rel="noopener nofollow">
43
+ <i class="scoicon sco-right-btn-fill"></i>
44
+ <span class="banner-button-text"><%= like.button_text %></span>
45
+ </a>
46
+ </div>
47
+ <% } %>
48
+ </div>
49
+ </div>
50
+ </div>
51
+ <% }); %>
52
+ </div>
53
+ <% } %>