hexo-theme-solitude 1.4.7 → 1.5.1

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 (62) hide show
  1. package/CONTRIBUTING.md +16 -3
  2. package/README.md +2 -2
  3. package/README_EN.md +2 -2
  4. package/_config.yml +115 -186
  5. package/languages/en-US.yml +0 -1
  6. package/languages/zh-CN.yml +0 -1
  7. package/languages/zh-TW.yml +0 -1
  8. package/layout/includes/footer.pug +8 -6
  9. package/layout/includes/inject/body.pug +0 -2
  10. package/layout/includes/inject/head.pug +5 -3
  11. package/layout/includes/nav.pug +3 -3
  12. package/layout/includes/sidebar.pug +1 -1
  13. package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
  14. package/layout/includes/widgets/home/banner.pug +11 -4
  15. package/layout/includes/widgets/home/categoryGroup.pug +12 -8
  16. package/layout/includes/widgets/home/hometop.pug +1 -2
  17. package/layout/includes/widgets/home/postList.pug +2 -2
  18. package/layout/includes/widgets/nav/group.pug +13 -0
  19. package/layout/includes/widgets/nav/menu.pug +20 -16
  20. package/layout/includes/widgets/page/about/award.pug +1 -1
  21. package/layout/includes/widgets/page/equipment/content.pug +1 -1
  22. package/layout/includes/widgets/page/links/linksCard.pug +0 -1
  23. package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
  24. package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
  25. package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
  26. package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
  27. package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
  28. package/layout/index.pug +6 -6
  29. package/package.json +1 -1
  30. package/plugins.yml +0 -5
  31. package/scripts/helper/stylus.js +28 -1
  32. package/source/css/_global/animation.styl +6 -0
  33. package/source/css/_layout/basic.styl +10 -1
  34. package/source/css/_layout/header.styl +5 -5
  35. package/source/css/_layout/index.styl +0 -1
  36. package/source/css/_page/_about/skills.styl +1 -1
  37. package/source/css/_page/_home/category-bar.styl +14 -14
  38. package/source/css/_page/_home/home-top.styl +57 -45
  39. package/source/css/_page/_home/recent-post.styl +1 -1
  40. package/source/css/_page/equipment.styl +3 -2
  41. package/source/css/_page/home.styl +0 -15
  42. package/source/css/_page/links.styl +9 -8
  43. package/source/css/_page/says.styl +1 -2
  44. package/source/css/_page/share.styl +30 -67
  45. package/source/css/_widgets/_aside/flip.styl +3 -6
  46. package/source/css/_widgets/_aside/index.styl +1 -1
  47. package/source/css/_widgets/_aside/info.styl +1 -1
  48. package/source/css/_widgets/_comment/twikoo.styl +4 -6
  49. package/source/css/_widgets/_comment/waline.styl +435 -72
  50. package/source/css/_widgets/_extra/console.styl +2 -1
  51. package/source/css/_widgets/_extra/fullpage.styl +1 -1
  52. package/source/css/_widgets/_mixins/footer.styl +4 -2
  53. package/source/css/_widgets/_post/content.styl +1 -11
  54. package/source/css/_widgets/_post/copyright.styl +2 -2
  55. package/source/css/_widgets/_post/meta.styl +2 -2
  56. package/source/css/_widgets/_post/relatedPost.styl +1 -1
  57. package/source/css/_widgets/_post/tools.styl +1 -1
  58. package/source/css/_widgets/_search/algolia-search.styl +4 -2
  59. package/source/css/_widgets/_tags/note.styl +4 -0
  60. package/source/js/main.js +27 -35
  61. package/source/js/sco-ai.min.js +1 -1
  62. package/layout/includes/widgets/nav/left.pug +0 -10
package/CONTRIBUTING.md CHANGED
@@ -15,8 +15,8 @@
15
15
  * 在 GitHub 上 `fork` 到自己的仓库,如 `yife68/Hexo-Theme-Solitude`,然后 `clone` 到本地Hexo主题目录,并设置用户信息。
16
16
 
17
17
  ```bash
18
- $ git clone git@github.com:{your-github-username}/Hexo-Theme-Solitude.git themes/Solitude
19
- $ cd Solitude
18
+ $ git clone git@github.com:{your-github-username}/hexo-theme-solitude.git themes/solitude
19
+ $ cd solitude
20
20
  $ git config user.name "yourname"
21
21
  $ git config user.email "your email"
22
22
  ```
@@ -38,4 +38,17 @@ $ git fetch upstream
38
38
  $ git checkout dev
39
39
  $ git rebase upstream/dev
40
40
  $ git push -f origin dev
41
- ```
41
+ ```
42
+
43
+ * 不得添加任何第三方的创作,请自行创作插件并`PR`到 `solitude-pugins` 仓库
44
+
45
+ ### 插件创作
46
+ * 插件创作
47
+
48
+ ```
49
+ $ git clone git@github.com:{your-github-username}/solitude-plugins.git
50
+ $ git config user.name "yourname"
51
+ $ git config user.email "your email"
52
+ ```
53
+
54
+ * 根据 `README` 进行添加。
package/README.md CHANGED
@@ -12,9 +12,9 @@
12
12
 
13
13
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
14
14
 
15
- 主题预览: [王卓Sco](https://blog.wzsco.top/) | [Demo](https://solitude.wzsco.top/)
15
+ 主题预览: [王卓Sco](https://blog.wzsco.cn/) | [Demo](https://solitude.wzsco.cn/)
16
16
 
17
- 主题文档: [中文](https://docs.wzsco.top/) | [ English ](https://docs.wzsco.top/en/)
17
+ 主题文档: [中文](https://docs.wzsco.cn/) | [ English ](https://docs.wzsco.cn/en/)
18
18
 
19
19
  主题交流群:`文档内有群二维码和链接`
20
20
 
package/README_EN.md CHANGED
@@ -13,9 +13,9 @@
13
13
 
14
14
  ![首页](https://github.com/wleelw/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
15
15
 
16
- Theme Preview: [王卓Sco](https://blog.wzsco.top/)|[Demo](https://solitude.wzsco.top/)
16
+ Theme Preview: [王卓Sco](https://blog.wzsco.cn/)|[Demo](https://solitude.wzsco.cn/)
17
17
 
18
- Theme Document: [中文](https://docs.wzsco.top/)|[ English ](https://docs.wzsco.top/en/)
18
+ Theme Document: [中文](https://docs.wzsco.cn/)|[ English ](https://docs.wzsco.cn/en/)
19
19
 
20
20
  Theme discussion group:`The usage document above contains a QR code`
21
21
 
package/_config.yml CHANGED
@@ -49,71 +49,37 @@ nav:
49
49
  # 显示分类名
50
50
  # Display category name
51
51
  项目:
52
- # # 显示子类
53
- # # Display subcategories
54
- # Solitude:
55
- # # 显示的图标
56
- # # Displayed icon
57
- # icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
58
- # # 点击的跳转链接
59
- # # Click the jump link
60
- # url: https://github.com/wleelw/Hexo-Theme-solitude
52
+ # # 显示子类
53
+ # # Display subcategories
54
+ # Solitude:
55
+ # # 显示的图标
56
+ # # Displayed icon
57
+ # icon: https://bu.dusays.com/2023/11/08/654af68b25bb8.jpg
58
+ # # 点击的跳转链接
59
+ # # Click the jump link
60
+ # url: https://github.com/wleelw/Hexo-Theme-solitude
61
61
 
62
62
  # 导航栏内容
63
63
  # Navigation bar content
64
64
  # tip:此部分内容是顶部导航栏中间菜单区域
65
65
  # tip: This part of the content is the menu area in the middle of the top navigation bar
66
66
  menu:
67
- # 显示的大分类名称
68
- # Displayed category name
69
- # 文库:
70
- # # 点击跳转链接
71
- # # Click the jump link
72
- # # tip:如果没有子类就填跳转链接,例如:/archives,否则填false
73
- # # tip: If there is no subcategory, fill in the jump link, for example: /archives, otherwise fill in false
74
- # url: false
75
- # # 子类数组
76
- # # Subcategory array
77
- # child:
78
- # # 子类名称
79
- # # Subcategory name
80
- # 文章列表:
81
- # # 点击跳转链接
82
- # # Click the jump link
83
- # url: /archives/
84
- # # 子类名称左侧图标
85
- # # Subcategory name left icon
86
- # icon: sco-folder-fill
87
- # 全部分类:
88
- # url: /categories/
89
- # icon: sco-checkbox-multiple-blank-fill
90
- # 全部标签:
91
- # url: /tags/
92
- # icon: sco-price-tag-fill
93
- # 友链:
94
- # url: false
95
- # child:
96
- # 友情链接:
97
- # url: /links/
98
- # icon: sco-group-fill
99
- # 宝藏博主:
100
- # url: javascript:travelling()
101
- # icon: sco-gift-fill
102
- # 我的:
103
- # url: false
104
- # child:
105
- # 装备:
106
- # url: /equipment/
107
- # icon: sco-laptop-line
108
- # 工具箱:
109
- # url: /tlink/
110
- # icon: sco-tools-fill
111
- # 关于:
112
- # url: false
113
- # child:
114
- # 关于本站:
115
- # url: /about/
116
- # icon: sco-contacts-fill
67
+ # 首页: / # 显示名称:路径 / Display name: path
68
+ # 文库: # 显示名称 / Display name
69
+ # 文章列表: /archives/ || sco-folder-fill # 子菜单名称:路径 || 图标 / Submenu name: path || icon
70
+ # 全部分类: /categories/ || sco-checkbox-multiple-blank-fill
71
+ # 全部标签: /tags/ || sco-price-tag-fill
72
+ # 友链:
73
+ # 友链鱼塘: /moments/ || sco-wifi-fill
74
+ # 友情链接: /links/ || sco-group-fill
75
+ # 宝藏博主: javascript:travelling() || sco-gift-fill
76
+ # 我的:
77
+ # 相册集: /gallery/ || sco-image-fill
78
+ # 装备: /equipment/ || sco-laptop-line
79
+ # 工具箱: /tlink/ || sco-tools-fill
80
+ # 音乐馆: /music/ || sco-disc-fill
81
+ # 关于:
82
+ # 关于本站: /about/ || sco-contacts-fill
117
83
 
118
84
  # 导航栏右侧按钮
119
85
  # Button on the right side of the navigation bar
@@ -125,11 +91,11 @@ nav:
125
91
  # 从左至右
126
92
  # From left to right
127
93
  custom:
128
- # - name: 开往 - 友链接力 # 显示文字 / Displayed text
129
- # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
130
- # icon: sco-train-line # 图标 / Icon
131
- # onclick: # 点击事件 / Click event
132
- # id: travellings_button # id
94
+ # - name: 开往 - 友链接力 # 显示文字 / Displayed text
95
+ # url: https://www.travellings.cn/go.html # 跳转链接 / Jump link
96
+ # icon: sco-train-line # 图标 / Icon
97
+ # onclick: # 点击事件 / Click event
98
+ # id: travellings_button # id
133
99
 
134
100
  # 首页顶部样式
135
101
  # Home top style
@@ -151,61 +117,40 @@ hometop:
151
117
  # 轮播icon
152
118
  # Carousel icon
153
119
  icon:
154
- # # 名字 / Name
155
- # HTML:
156
- # # 图片 / Image
157
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/HTML.png
158
- # # 背景色 / Background color
159
- # color: "#e9572b"
160
- # JS:
161
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/JS.png
162
- # color: "#f7cb4f"
163
- # Kotlin:
164
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/kotlin-logo.svg
165
- # color: "#ffffff"
166
- # Docker:
167
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/docker.png
168
- # color: "#57b6e6"
169
- # Flutter:
170
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/flutter.png
171
- # color: "#ffffff"
172
- # WebPack:
173
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/webpack.png
174
- # color: "#2e3a41"
175
- # Git:
176
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/git.png
177
- # color: "#df5b40"
178
- # VS:
179
- # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/vs-logo.svg
180
- # color: "#ffffff"
181
-
182
- # 顶部三大分类
183
- # Top three categories
184
- categoryGroup:
185
- # 左侧
186
- # Left
187
- G1:
188
- # 显示文字
189
- # Displayed text
190
- name: 必看精选
191
- # 显示图标
192
- # Displayed icon
193
- icon: scoicon sco-star-smile-fill
194
- # 跳转链接
195
- # Jump link
196
- url: /tags/精选/
197
- # 中间
198
- # Middle
199
- G2:
200
- name: 热门文章
201
- icon: scoicon sco-fire-fill
202
- url: /categories/热门/
203
- # 右侧
204
- # Right
205
- G3:
206
- name: 实用教程
207
- icon: scoicon sco-book-mark-fill
208
- url: /tags/教程/
120
+ # # 名字 / Name
121
+ # HTML:
122
+ # # 图片 / Image
123
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/HTML.png
124
+ # # 背景色 / Background color
125
+ # color: "#e9572b"
126
+ # JS:
127
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/JS.png
128
+ # color: "#f7cb4f"
129
+ # Kotlin:
130
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/kotlin-logo.svg
131
+ # color: "#ffffff"
132
+ # Docker:
133
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/docker.png
134
+ # color: "#57b6e6"
135
+ # Flutter:
136
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/flutter.png
137
+ # color: "#ffffff"
138
+ # WebPack:
139
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/webpack.png
140
+ # color: "#2e3a41"
141
+ # Git:
142
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/git.png
143
+ # color: "#df5b40"
144
+ # VS:
145
+ # img: https://npm.elemecdn.com/wleelw-blog-abs@1.0.0/img/icon/vs-logo.svg
146
+ # color: "#ffffff"
147
+
148
+ # banner 左下跳转按钮
149
+ # Banner lower left jump button
150
+ group:
151
+ # 热门: /tags/热门/ || sco-fire-fill || linear-gradient(to right,#f65,#ffbf37)
152
+ # 教程: /tags/教程/ || sco-book-mark-fill || linear-gradient(to right,#358bff,#15c6ff)
153
+ # 精选: /tags/精选/ || sco-star-smile-fill || linear-gradient(to right,#18e7ae,#1eebeb)
209
154
 
210
155
  # 右侧置顶列表(在文章的front matter中添加“recommend: true”)
211
156
  # Right top list (add "recommend: true" in the front matter of the article)
@@ -303,16 +248,10 @@ aside:
303
248
  - 🧱 团队小组发动机
304
249
  - 💢 壮汉人狠话不多
305
250
  - 🎮 电竞游戏爱好者
251
+ # 个人信息卡片底部的小图标,按照例子填写
306
252
  information:
307
- # # 悬停显示文字
308
- # Github:
309
- # # 图标
310
- # icon: scoicon sco-github-line
311
- # # 跳转链接
312
- # url: https://github.com/wleelw/Hexo-Theme-slitude
313
- # Bilibili:
314
- # icon: scoicon sco-bilibili-line
315
- # url: https://space.bilibili.com/1329819902
253
+ # Github: https://github.com/wleelw || sco-github-line # 名称:链接 || 图标 / Name: link || icon
254
+ # Bilibili: https://space.bilibili.com/1329819902 || sco-bilibili-line
316
255
 
317
256
  # 二维码
318
257
  # Official account QR code
@@ -326,9 +265,9 @@ aside:
326
265
  # 鼠标悬停翻转图片
327
266
  # Mouse hover flip image
328
267
  backface:
329
- # 夜间模式下是否开启卡片背景颜色 true:使用背景颜色 / false:不使用背景颜色
330
- # Whether to enable card background color in night mode true: use background color / false: do not use background color
331
- darkcolor: false
268
+ # 背景色:var(--sco-blue) / #000 / rgba(0,0,0,0.5) / linear-gradient(to right,#f65,#ffbf37)
269
+ # Background color: var(--sco-blue) / #000 / rgba(0,0,0,0.5) / linear-gradient(to right,#f65,#ffbf37)
270
+ backcolor: "var(--sco-blue)"
332
271
 
333
272
  # 页面目录
334
273
  # Page directory
@@ -515,40 +454,30 @@ footer:
515
454
  # 底部上方一排图标
516
455
  # Bottom row of icons
517
456
  information:
518
- # 左侧显示图标 / Left display icon
519
- left:
520
- # Github:
521
- # icon: scoicon sco-bilibili-line
522
- # url: https://github.com/wleelw
523
- # Mail:
524
- # icon: scoicon sco-mail-line
525
- # url: mailto:wleelw@wzsco.top
526
- # 右侧显示图标 / Right display icon
527
- right:
528
- # Bilibili:
529
- # icon: scoicon sco-bilibili-line
530
- # url: https://space.bilibili.com/1329819902
531
- # 抖音:
532
- # icon: scoicon sco-douyin-fill
533
- # url: https://v.douyin.com/iJsLc8jt/
457
+ left: # 左侧显示图标
458
+ # Github: https://github.com/wleelw || sco-github-line # 名称:链接 || 图标 / Name: link || icon
459
+ # Mail: mailto:wleelw@wzsco.top || sco-mail-line
460
+ right: # 右侧显示图标
461
+ # Bilibili: https://space.bilibili.com/1329819902 || sco-bilibili-line
462
+ # 抖音: https://v.douyin.com/iJsLc8jt/ || sco-douyin-fill
534
463
 
535
464
  # 底部导航栏
536
465
  # Bottom navigation bar
537
466
  group:
538
- # 导航:
539
- # 归档: /archives/
540
- # 分类: /categories/
541
- # 标签: /tags/
542
- # 服务:
543
- # 阿里云: https://aliyun.com/
544
- # 51la统计: https://v6.51.la/
545
- # 百度统计: https://tongji.baidu.com/
546
- # 支持:
547
- # 打赏记录: /about/
548
- # 协议:
549
- # Cookies: /cookies/
550
- # 用户协议: /privacy/
551
- # 版权协议: /copyright/
467
+ # 导航:
468
+ # 归档: /archives/
469
+ # 分类: /categories/
470
+ # 标签: /tags/
471
+ # 服务:
472
+ # 阿里云: https://aliyun.com/
473
+ # 51la统计: https://v6.51.la/
474
+ # 百度统计: https://tongji.baidu.com/
475
+ # 支持:
476
+ # 打赏记录: /about/
477
+ # 协议:
478
+ # Cookies: /cookies/
479
+ # 用户协议: /privacy/
480
+ # 版权协议: /copyright/
552
481
 
553
482
  # 底部随机友链
554
483
  # Random links at the bottom
@@ -668,28 +597,28 @@ keyboard:
668
597
  # 键盘控制配置
669
598
  # Keyboard control configuration
670
599
  list:
671
- # name: 按键名称
672
- # name: Key name
673
- # key: 按键
674
- # key: Key
675
- # func: 方法
676
- # func: Function
677
- # sco: sco内置方法
678
- # sco: sco built-in method
679
- # url: 跳转链接
680
- # url: Jump link
681
- # - name: 关闭快捷键功能
682
- # key: K
683
- # func: keyboard
684
- # - name: 打开中控台
685
- # key: A
686
- # sco: showConsole
687
- # - name: 播放/暂停音乐
688
- # key: M
689
- # sco: musicToggle
690
- # - name: 打开友情链接
691
- # key: L
692
- # url: "/links/"
600
+ # name: 按键名称
601
+ # name: Key name
602
+ # key: 按键
603
+ # key: Key
604
+ # func: 方法
605
+ # func: Function
606
+ # sco: sco内置方法
607
+ # sco: sco built-in method
608
+ # url: 跳转链接
609
+ # url: Jump link
610
+ # - name: 关闭快捷键功能
611
+ # key: K
612
+ # func: keyboard
613
+ # - name: 打开中控台
614
+ # key: A
615
+ # sco: showConsole
616
+ # - name: 播放/暂停音乐
617
+ # key: M
618
+ # sco: musicToggle
619
+ # - name: 打开友情链接
620
+ # key: L
621
+ # url: "/links/"
693
622
 
694
623
  # 懒加载
695
624
  # lazyload
@@ -919,9 +848,9 @@ CDN:
919
848
  custom_format: https://cdn.staticfile.org/${cdnjs_name}/${version}/${min_cdnjs_file}
920
849
 
921
850
  option:
922
- scoicon_css: https://cdn.cbd.int/solitude-source/icon/scoicon.min.css
923
- waterfall: https://cdn.cbd.int/solitude-source/js/waterfall.min.js
924
- universe_js: https://cdn.cbd.int/solitude-source/js/universe.min.js
851
+ scoicon_css: https://cdn.cbd.int/solitude-source/icon/scoicon.min.css
852
+ waterfall: https://cdn.cbd.int/solitude-source/js/waterfall.min.js
853
+ universe_js: https://cdn.cbd.int/solitude-source/js/universe.min.js
925
854
  # algolia_search:
926
855
  # instantsearch:
927
856
  # pjax:
@@ -75,7 +75,6 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: Please enable JavaScript to view the site
78
- console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.7 😄'
79
78
 
80
79
  aside:
81
80
  postcount: 'Posts :'
@@ -75,7 +75,6 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 开启JavaScript才能访问本站哦~
78
- console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.7 😄'
79
78
 
80
79
  aside:
81
80
  postcount: '文章总数 :'
@@ -75,7 +75,6 @@ search:
75
75
 
76
76
  head:
77
77
  noscript: 開啟JavaScript才能訪問本站哦~
78
- console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.7 😄'
79
78
 
80
79
  aside:
81
80
  postcount: '文章數:'
@@ -12,16 +12,18 @@ div#footer_deal
12
12
  - var leftInfo = theme.footer && theme.footer.information && theme.footer.information.left || {}
13
13
  - var rightInfo = theme.footer && theme.footer.information && theme.footer.information.right || {}
14
14
 
15
- each value, i in leftInfo
16
- a.deal_link(href=url_for(value.url), title=i)
17
- i.scoicon(class=value.icon)
15
+ each value, label in leftInfo
16
+ - var array = value.split('||')
17
+ a.deal_link(href=url_for(trim(array[0])), title=label)
18
+ i.scoicon(class=array[1])
18
19
 
19
20
  div#footer_mini_logo.footer_mini_logo(title=_p('nav.backtop'), onclick="sco.toTop()")
20
21
  img(src=theme.site.icon, alt=_p('nav.backtop'))
21
22
 
22
- each value, i in rightInfo
23
- a.deal_link(href=url_for(value.url), title=i)
24
- i.scoicon(class=value.icon)
23
+ each value, label in rightInfo
24
+ - var array = value.split('||')
25
+ a.deal_link(href=url_for(trim(array[0])), title=label)
26
+ i.scoicon(class=array[1])
25
27
  div#sco-footer
26
28
  - var group = theme.footer && theme.footer.group ? theme.footer.group : {}
27
29
 
@@ -77,8 +77,6 @@ div
77
77
  script(src=url_for(theme.cdn.twikoo))
78
78
  when 'waline'
79
79
  script(src=url_for(theme.cdn.waline_js))
80
- link(rel="stylesheet", href=url_for(theme.cdn.waline_css))
81
-
82
80
  if theme.comment.commentBarrage
83
81
  case theme.comment.type
84
82
  when 'twikoo'
@@ -16,7 +16,7 @@ if theme.lightbox && theme.fancybox
16
16
  link(rel="stylesheet", href=url_for(theme.cdn.fancyapps_css))
17
17
 
18
18
  if theme.katex && theme.katex.enable
19
- link(rel="stylesheet", href=url_for(theme.cdn.katex))
19
+ link(rel="stylesheet", href=url_for(theme.cdn.katex))
20
20
 
21
21
  // Open Graph
22
22
  include ../head/opengraph.pug
@@ -78,8 +78,10 @@ script.
78
78
  )(window)
79
79
 
80
80
  console.log(
81
- "%c🔥 !{_p('head.console')}",
82
- "color: #fff; background: linear-gradient(-25deg, #a8edea, #fed6e3); padding: 8px 15px; border-radius: 8px; text-shadow: 2px 2px 4px white; color: black;"
81
+ "%c Program: Hexo %c Theme: Hexo-Theme-Solitude %c Version: v1.5.1",
82
+ "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;margin:10px 0",
83
+ "padding: 5px 10px;color:white;background:#3e9f50;",
84
+ "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;"
83
85
  );
84
86
  if theme.extends.head
85
87
  each item in theme.extends.head
@@ -1,11 +1,11 @@
1
1
  nav#nav.show
2
2
  #nav-group
3
3
  #blog_name
4
- if theme.nav.left.enable
4
+ if theme.nav.group
5
5
  .back-home-button(tabindex="-1")
6
6
  i.back-home-button-icon.scoicon.sco-more-fill
7
- include ./widgets/nav/left.pug
8
- a#site-name(href="/", title=_p('nav.site_name_title'), target="_self")
7
+ include ./widgets/nav/group
8
+ a#site-name(href="/", title=_p('nav.site_name_title'))
9
9
  if theme.site.name.class === 'i_class'
10
10
  i.scoicon(class=theme.site.name.custom, style="font-size: 16px;")
11
11
  else if theme.site.name.class === 'img'
@@ -7,7 +7,7 @@ div#sidebar(style="zoom: 1;")
7
7
  i.scoicon.sco-moon-clear-fill
8
8
  span= __('sidebar.darkmode')
9
9
  if theme.nav.left.enable
10
- include ./widgets/nav/left.pug
10
+ include ./widgets/nav/group
11
11
  include ./widgets/nav/menu.pug
12
12
  span.sidebar-menu-item-title= __('sidebar.title2')
13
13
  div.card-widget.card-tags.card-archives.card-webinfo.card-allinfo
@@ -15,6 +15,7 @@
15
15
  .author-info__name= config.author
16
16
  .author-info__desc!= config.subtitle
17
17
  .card-info-social-icons.is-center
18
- each value, key in theme.aside.card.information || []
19
- a.social-icon(href=url_for(value.url), title=key)
20
- i.scoicon(class=value.icon)
18
+ each value, label in theme.aside.card.information || {}
19
+ - var array = value.split('||')
20
+ a.social-icon(href=url_for(trim(array[0])), title=label)
21
+ i.scoicon(class=array[1])
@@ -1,6 +1,16 @@
1
1
  div.banners-title
2
2
  div.banners-title-big!= theme.hometop.banner.title
3
3
  div.banners-title-small= theme.hometop.banner.url
4
+ - var group = theme.hometop.group
5
+ if group
6
+ div.banners-links
7
+ each value,label in group
8
+ - var array = value.split('||')
9
+ a.banners-link-btn(href=url_for(trim(array[0])) class="banners-link-"+label)
10
+ if array[1]
11
+ i.scoicon(class=array[1])
12
+ .banners-link-title= label
13
+
4
14
  div.tags-group-all
5
15
  .tags-group-wrapper
6
16
  each i in [1,2]
@@ -10,7 +20,4 @@ div.tags-group-all
10
20
  .tags-group-icon-pair
11
21
  each key in pair
12
22
  .tags-group-icon(style=`background: ${theme.hometop.banner.icon[key].color}`)
13
- img(src=theme.hometop.banner.icon[key].img, title=key)
14
- a#banner-hover(onclick="toRandomPost()")
15
- span.bannerText= _p('home.bannertext')
16
- i.scoicon.sco-arrow-2-right-line.banner-righticon
23
+ img(src=theme.hometop.banner.icon[key].img, title=key)
@@ -1,9 +1,13 @@
1
- - var groupNames = ['G1', 'G2', 'G3'];
2
- - var styles = ['--sco-shadow-blue', '--sco-shadow-red', '--sco-shadow-green'];
3
- - var classes = ['bikan', 'remen', 'shiyong'];
1
+ - gg = theme.hometop.group
2
+ - group = gg ? (Object.entries(gg)).slice(0, 2) : null
4
3
 
5
- each groupName, index in groupNames
6
- .categoryItem(style=`box-shadow: var(${styles[index]});`)
7
- a.categoryButton(class=classes[index], href=url_for(theme.hometop.categoryGroup[groupName].url))
8
- span.categoryButtonText= theme.hometop.categoryGroup[groupName].name
9
- i.scoicon(class=theme.hometop.categoryGroup[groupName].icon)
4
+ if group
5
+ .categoryGroup
6
+
7
+ each item in group
8
+ - var array = item[1].split('||')
9
+ .categoryItem
10
+ a.categoryButton(href=url_for(trim(array[0])) if array[2] style="background:" + array[2] + ";")
11
+ span.categoryButtonText= item[0]
12
+ if array[1]
13
+ i.scoicon(class=trim(array[1]))
@@ -3,7 +3,6 @@
3
3
  #bannerGroup
4
4
  #banners
5
5
  include ./banner.pug
6
- .categoryGroup
7
- include ./categoryGroup.pug
6
+ include ./categoryGroup.pug
8
7
  .topGroup
9
8
  include ./topGroup.pug
@@ -1,4 +1,4 @@
1
- div.recent-post-item(onclick="pjax.loadUrl('/" + post.path + "')")
1
+ div.recent-post-item(onclick="pjax.loadUrl('" + url_for(post.path) + "')")
2
2
  div.post_cover
3
3
  a(href=url_for(post.path), title=post.title)
4
4
  img.post_bg(src=url_for(post.cover), alt=post.title)
@@ -22,7 +22,7 @@ div.recent-post-item(onclick="pjax.loadUrl('/" + post.path + "')")
22
22
  div.article-meta-wrap
23
23
  span.article-meta.tags
24
24
  each tag in post.tags.data
25
- a.article-meta__tags(href=url_for(tag.path), onclick="event.stopPropagation();")
25
+ a.article-meta__tags(href=tag.path, onclick="event.stopPropagation();")
26
26
  span.tags-punctuation=tag.name
27
27
 
28
28
  span.post-meta-date
@@ -0,0 +1,13 @@
1
+ - var menu = theme.nav.group
2
+ if menu
3
+ .back-menu-list-groups
4
+ each value, label in menu
5
+ .back-menu-list-group
6
+ .back-menu-list-title= label
7
+ .back-menu-list
8
+ each data, label in value
9
+ - var array = data.split('||')
10
+ a.back-menu-item(href=url_for(trim(array[0])), title=index)
11
+ if array[1]
12
+ img.back-menu-item-icon(src=trim(array[1]), alt=index)
13
+ span.back-menu-item-text= label