hexo-theme-solitude 1.4.7 → 1.5.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.
- package/CONTRIBUTING.md +16 -3
- package/README.md +2 -2
- package/README_EN.md +2 -2
- package/_config.yml +112 -183
- package/languages/en-US.yml +1 -1
- package/languages/zh-CN.yml +1 -1
- package/languages/zh-TW.yml +1 -1
- package/layout/includes/footer.pug +8 -6
- package/layout/includes/inject/body.pug +0 -2
- package/layout/includes/nav.pug +3 -3
- package/layout/includes/sidebar.pug +1 -1
- package/layout/includes/widgets/aside/asideInfoCard.pug +4 -3
- package/layout/includes/widgets/home/banner.pug +11 -4
- package/layout/includes/widgets/home/categoryGroup.pug +11 -8
- package/layout/includes/widgets/home/hometop.pug +1 -2
- package/layout/includes/widgets/home/postList.pug +3 -3
- package/layout/includes/widgets/nav/group.pug +13 -0
- package/layout/includes/widgets/nav/menu.pug +20 -16
- package/layout/includes/widgets/page/about/award.pug +1 -1
- package/layout/includes/widgets/page/equipment/content.pug +1 -1
- package/layout/includes/widgets/page/links/linksCard.pug +0 -1
- package/layout/includes/widgets/third-party/comments/waline.pug +2 -0
- package/layout/includes/widgets/third-party/news-comment/twikoo.pug +2 -2
- package/layout/includes/widgets/third-party/news-comment/waline.pug +2 -2
- package/layout/includes/widgets/third-party/search/algolia-search.pug +1 -1
- package/layout/includes/widgets/third-party/search/local-search.pug +1 -1
- package/layout/index.pug +6 -6
- package/package.json +1 -1
- package/plugins.yml +0 -5
- package/scripts/helper/stylus.js +19 -0
- package/source/css/_global/animation.styl +6 -0
- package/source/css/_layout/basic.styl +10 -1
- package/source/css/_layout/header.styl +5 -5
- package/source/css/_layout/index.styl +0 -1
- package/source/css/_page/_about/skills.styl +1 -1
- package/source/css/_page/_home/category-bar.styl +14 -14
- package/source/css/_page/_home/home-top.styl +57 -45
- package/source/css/_page/_home/recent-post.styl +1 -1
- package/source/css/_page/equipment.styl +3 -2
- package/source/css/_page/home.styl +0 -15
- package/source/css/_page/links.styl +9 -8
- package/source/css/_page/says.styl +1 -2
- package/source/css/_page/share.styl +30 -67
- package/source/css/_widgets/_aside/index.styl +1 -1
- package/source/css/_widgets/_aside/info.styl +1 -1
- package/source/css/_widgets/_comment/twikoo.styl +4 -6
- package/source/css/_widgets/_comment/waline.styl +435 -72
- package/source/css/_widgets/_extra/console.styl +1 -1
- package/source/css/_widgets/_extra/fullpage.styl +1 -1
- package/source/css/_widgets/_mixins/footer.styl +1 -1
- package/source/css/_widgets/_post/content.styl +1 -11
- package/source/css/_widgets/_post/meta.styl +2 -2
- package/source/css/_widgets/_post/relatedPost.styl +1 -1
- package/source/css/_widgets/_post/tools.styl +1 -1
- package/source/css/_widgets/_search/algolia-search.styl +4 -2
- package/source/css/_widgets/_tags/note.styl +4 -0
- package/source/js/main.js +27 -35
- 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}/
|
19
|
-
$ cd
|
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
|

|
14
14
|
|
15
|
-
主题预览: [王卓Sco](https://blog.wzsco.
|
15
|
+
主题预览: [王卓Sco](https://blog.wzsco.cn/) | [Demo](https://solitude.wzsco.cn/)
|
16
16
|
|
17
|
-
主题文档: [中文](https://docs.wzsco.
|
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
|

|
15
15
|
|
16
|
-
Theme Preview: [王卓Sco](https://blog.wzsco.
|
16
|
+
Theme Preview: [王卓Sco](https://blog.wzsco.cn/)|[Demo](https://solitude.wzsco.cn/)
|
17
17
|
|
18
|
-
Theme Document: [中文](https://docs.wzsco.
|
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
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
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
|
-
|
69
|
-
#
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
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
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
#
|
186
|
-
#
|
187
|
-
|
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
|
-
|
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
|
@@ -515,40 +454,30 @@ footer:
|
|
515
454
|
# 底部上方一排图标
|
516
455
|
# Bottom row of icons
|
517
456
|
information:
|
518
|
-
# 左侧显示图标
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
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
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
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
|
-
|
672
|
-
|
673
|
-
|
674
|
-
|
675
|
-
|
676
|
-
|
677
|
-
|
678
|
-
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
|
684
|
-
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
|
691
|
-
|
692
|
-
|
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
|
-
|
923
|
-
|
924
|
-
|
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:
|
package/languages/en-US.yml
CHANGED
@@ -75,7 +75,7 @@ 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.
|
78
|
+
console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.5.0 😄'
|
79
79
|
|
80
80
|
aside:
|
81
81
|
postcount: 'Posts :'
|
package/languages/zh-CN.yml
CHANGED
@@ -75,7 +75,7 @@ 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.
|
78
|
+
console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.5.0 😄'
|
79
79
|
|
80
80
|
aside:
|
81
81
|
postcount: '文章总数 :'
|
package/languages/zh-TW.yml
CHANGED
@@ -75,7 +75,7 @@ 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.
|
78
|
+
console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.5.0 😄'
|
79
79
|
|
80
80
|
aside:
|
81
81
|
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,
|
16
|
-
|
17
|
-
|
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,
|
23
|
-
|
24
|
-
|
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
|
|
package/layout/includes/nav.pug
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
nav#nav.show
|
2
2
|
#nav-group
|
3
3
|
#blog_name
|
4
|
-
if theme.nav.
|
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/
|
8
|
-
a#site-name(href="/", title=_p('nav.site_name_title')
|
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/
|
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,
|
19
|
-
|
20
|
-
|
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,12 @@
|
|
1
|
-
-
|
2
|
-
- var styles = ['--sco-shadow-blue', '--sco-shadow-red', '--sco-shadow-green'];
|
3
|
-
- var classes = ['bikan', 'remen', 'shiyong'];
|
1
|
+
- group = (Object.entries(theme.hometop.group)).slice(0, 2)
|
4
2
|
|
5
|
-
|
6
|
-
.
|
7
|
-
|
8
|
-
|
9
|
-
|
3
|
+
if group
|
4
|
+
.categoryGroup
|
5
|
+
|
6
|
+
each item in group
|
7
|
+
- var array = item[1].split('||')
|
8
|
+
.categoryItem
|
9
|
+
a.categoryButton(href=url_for(trim(array[0])) if array[2] style="background:" + array[2] + ";")
|
10
|
+
span.categoryButtonText= item[0]
|
11
|
+
if array[1]
|
12
|
+
i.scoicon(class=trim(array[1]))
|
@@ -15,14 +15,14 @@ div.recent-post-item(onclick="pjax.loadUrl('/" + post.path + "')")
|
|
15
15
|
if post.prev == null && is_home()
|
16
16
|
span.original= _p('home.recent-post.new')
|
17
17
|
|
18
|
-
a.unvisited-post(href=
|
18
|
+
a.unvisited-post(href=post.path)= _p('home.recent-post.read')
|
19
19
|
|
20
|
-
a.article-title(href=
|
20
|
+
a.article-title(href=post.path, title=post.title)= post.title
|
21
21
|
|
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=
|
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
|
@@ -1,16 +1,20 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
1
|
+
- var menu = theme.nav.menu
|
2
|
+
|
3
|
+
if menu
|
4
|
+
.menus_items
|
5
|
+
each value, label in menu
|
6
|
+
.menus_item
|
7
|
+
if typeof value !== 'object'
|
8
|
+
a.site-page(href=url_for(value))
|
9
|
+
span= label
|
10
|
+
else
|
11
|
+
a.site-page(href="javascript:void(0);")
|
12
|
+
span= label
|
13
|
+
ul.menus_item_child
|
14
|
+
each childValue, childLabel in value
|
15
|
+
li
|
16
|
+
- var array = childValue.split('||')
|
17
|
+
a.site-page.child(href=url_for(trim(array[0])))
|
18
|
+
if array[1]
|
19
|
+
i.scoicon(class=array[1])
|
20
|
+
span= childLabel
|