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.
- package/README.md +12 -7
- package/_config.yml +117 -99
- package/layout/404.ejs +1 -1
- package/layout/layout.ejs +27 -32
- package/layout/page/links.ejs +1 -12
- package/layout/page/says.ejs +1 -0
- package/layout/partial/body.ejs +0 -1
- package/layout/partial/compoment/about/award.ejs +2 -0
- package/layout/partial/compoment/about/hobbies.ejs +44 -35
- package/layout/partial/compoment/about/other.ejs +68 -60
- package/layout/partial/compoment/aside/asideFlipCard.ejs +67 -3
- package/layout/partial/compoment/aside/asideHistory.ejs +49 -0
- package/layout/partial/compoment/aside/asideNewestPost.ejs +1 -1
- package/layout/partial/compoment/aside/asidePower.ejs +3 -3
- package/layout/partial/compoment/aside/asideSwitch.ejs +6 -0
- package/layout/partial/compoment/aside/asideToc.ejs +1 -1
- package/layout/partial/compoment/aside/asideWebInfo.ejs +8 -8
- package/layout/partial/compoment/aside/asideWelcome.ejs +33 -0
- package/layout/partial/compoment/circle/angle.ejs +1 -1
- package/layout/partial/compoment/circle/content.ejs +2 -5
- package/layout/partial/compoment/dorakika/rightmenu.ejs +90 -105
- package/layout/partial/compoment/hometop/bbTimeList.ejs +1 -1
- package/layout/partial/compoment/hometop/groupTag.ejs +1 -1
- package/layout/partial/compoment/hometop/topGroup.ejs +11 -18
- package/layout/partial/compoment/inject/body.ejs +19 -4
- package/layout/partial/compoment/inject/head.ejs +68 -3
- package/layout/partial/compoment/links/angle.ejs +26 -0
- package/layout/partial/compoment/links/banner.ejs +2 -2
- package/layout/partial/compoment/mixins/pagination.ejs +2 -2
- package/layout/partial/compoment/nav/right.ejs +6 -6
- package/layout/partial/compoment/post/postMeta.ejs +10 -10
- package/layout/partial/compoment/says/saysBottom.ejs +3 -3
- package/layout/partial/compoment/says/saysContent.ejs +0 -1
- package/layout/partial/compoment/says/saysFunction.ejs +15 -0
- package/layout/partial/compoment/third-party/comments/comment.ejs +1 -1
- package/layout/partial/compoment/third-party/comments/twikoo.ejs +2 -1
- package/layout/partial/compoment/third-party/search/algolia-search.ejs +2 -2
- package/layout/partial/compoment/third-party/search/local-search.ejs +2 -2
- package/layout/partial/console.ejs +10 -4
- package/layout/partial/footer.ejs +6 -9
- package/layout/partial/nav.ejs +1 -1
- package/layout/partial/sidebar.ejs +2 -2
- package/layout/post.ejs +18 -2
- package/package.json +5 -6
- package/scripts/event/welcome.js +6 -7
- package/scripts/helper/randomLinks.js +1 -1
- package/scripts/helper/related_post.js +1 -1
- package/scripts/helper/themeJsExport.js +12 -10
- package/scripts/tags/hide.js +70 -0
- package/scripts/tags/tabs.js +1 -1
- package/source/css/main.css +55 -106
- package/source/css/search/algolia-search.css +1 -1
- package/source/css/search/local-search.css +1 -1
- package/source/css/var.css +3 -0
- package/source/img/error_load.png +0 -0
- package/source/img/pwa/16.png +0 -0
- package/source/img/pwa/32.png +0 -0
- package/source/js/commentBarrage.js +145 -136
- package/source/js/extend/search/algolia-search.js +11 -0
- package/source/js/extend/search/local-search.js +12 -1
- package/source/js/main.js +203 -21
- package/source/js/rightmenu.js +402 -0
- package/source/js/txmap.js +236 -0
- package/source/lib/chuckle-post-ai.js +1 -0
- package/source/lib/circle.min.js +1 -0
- package/source/lib/friends_post.js +4 -98
- package/source/lib/snackbar.min.js +9 -0
- package/source/lib/view-image.min.js +6 -0
- package/source/img/power.png +0 -0
- package/source/js/circle.js +0 -1828
- package/source/js/post_ai.js +0 -517
- package/source/lib/snackbar.js +0 -16
- package/source/lib/view-image.js +0 -13
- /package/source/lib/{bundle.js → bundle.min.js} +0 -0
- /package/source/lib/{lazyload.js → lazyload.min.js} +0 -0
package/README.md
CHANGED
@@ -1,12 +1,10 @@
|
|
1
1
|

|
2
2
|
|
3
|
-
|
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
|
-
|
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:
|
8
|
+
icp: # ICP 例如:湘ICP备2023015327号
|
9
9
|
|
10
10
|
|
11
11
|
# 导航栏
|
12
12
|
nav:
|
13
13
|
#导航栏左侧
|
14
14
|
left:
|
15
|
-
enable:
|
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:
|
29
|
-
全部分类:
|
30
|
-
url: /categories/
|
31
|
-
icon:
|
32
|
-
全部标签:
|
33
|
-
url: /tags/
|
34
|
-
icon:
|
35
|
-
友链:
|
36
|
-
url: false
|
37
|
-
child:
|
38
|
-
鱼塘:
|
39
|
-
url: /moments/
|
40
|
-
icon:
|
41
|
-
友情链接:
|
42
|
-
url: /links/
|
43
|
-
icon:
|
44
|
-
宝藏博主:
|
45
|
-
url: javascript:travelling()
|
46
|
-
icon:
|
47
|
-
我的:
|
48
|
-
url: false
|
49
|
-
child:
|
50
|
-
装备:
|
51
|
-
url: /equipment/
|
52
|
-
icon:
|
53
|
-
工具箱:
|
54
|
-
url: /tlink/
|
55
|
-
icon:
|
56
|
-
关于:
|
57
|
-
url: false
|
58
|
-
child:
|
59
|
-
关于本站:
|
60
|
-
url: /about/
|
61
|
-
icon:
|
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:
|
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.
|
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:
|
113
|
+
icon: scoicon sco-star-smile-fill
|
113
114
|
url: /tags/精选/
|
114
115
|
G2:
|
115
116
|
name: 热门文章
|
116
|
-
icon:
|
117
|
+
icon: scoicon sco-fire-fill
|
117
118
|
url: /categories/热门/
|
118
119
|
G3:
|
119
120
|
name: 实用教程
|
120
|
-
icon:
|
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: /
|
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:
|
160
|
+
icon: scoicon sco-github-line
|
160
161
|
url: https://github.com/DuoSco/Hexo-Theme-slitude
|
161
162
|
Bilibili:
|
162
|
-
icon:
|
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:
|
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:
|
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
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
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
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
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
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
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: '/
|
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
|
-
|
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
|
-
|
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
package/layout/layout.ejs
CHANGED
@@ -1,35 +1,30 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html lang="<%= config.language %>" data-theme="light">
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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>
|
package/layout/page/links.ejs
CHANGED
@@ -2,18 +2,7 @@
|
|
2
2
|
<%- partial('partial/compoment/links/banner') %>
|
3
3
|
</div>
|
4
4
|
<% if(theme.circle.angle.enable){ %>
|
5
|
-
|
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 => { %>
|
package/layout/page/says.ejs
CHANGED
@@ -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>
|
package/layout/partial/body.ejs
CHANGED
@@ -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,44 +1,53 @@
|
|
1
1
|
<div class="author-content">
|
2
|
-
|
3
|
-
<div class="
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
<
|
8
|
-
<div class="
|
9
|
-
|
10
|
-
|
11
|
-
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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"><%=
|
29
|
-
<span class="author-content-item-title"><%=
|
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"><%=
|
32
|
-
|
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
|
+
<% } %>
|