hexo-theme-solitude 2.1.5 → 2.1.7
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/_config.yml +18 -19
- package/languages/default.yml +173 -173
- package/layout/archive.pug +3 -1
- package/layout/category.pug +3 -1
- package/layout/includes/head/page_config.pug +3 -1
- package/layout/includes/loading.pug +1 -1
- package/layout/includes/rightmenu.pug +6 -5
- package/layout/includes/widgets/aside/aside.pug +1 -1
- package/layout/includes/widgets/page/links/banner.pug +15 -12
- package/layout/includes/widgets/rightside/show.pug +1 -1
- package/layout/includes/widgets/third-party/hot/artalk.pug +56 -0
- package/layout/includes/widgets/third-party/hot/twikoo.pug +57 -0
- package/layout/includes/widgets/third-party/pjax.pug +2 -1
- package/layout/index.pug +1 -1
- package/layout/tag.pug +2 -0
- package/package.json +1 -1
- package/scripts/event/cdn.js +1 -1
- package/scripts/event/init.js +0 -1
- package/scripts/event/merge_config.js +14 -39
- package/scripts/filter/default.js +20 -21
- package/scripts/filter/lazyload.js +2 -4
- package/scripts/helper/getArchiveLength.js +9 -11
- package/scripts/helper/related_post.js +56 -56
- package/scripts/tags/article.js +1 -1
- package/scripts/tags/tabs.js +28 -46
- package/source/css/_comments/twikoo.styl +3 -3
- package/source/css/_highlight/highlight/diff.styl +13 -1
- package/source/css/_highlight/index.styl +9 -0
- package/source/css/_highlight/prismjs/diff.styl +13 -1
- package/source/css/_layout/article-container.styl +1 -1
- package/source/css/_layout/recent-post.styl +2 -2
- package/source/img/error_load.avif +0 -0
- package/source/js/covercolor/api.js +29 -14
- package/source/js/covercolor/ave.js +38 -24
- package/source/js/covercolor/local.js +52 -52
- package/source/js/main.js +238 -240
- package/source/js/music.js +21 -39
- package/source/js/right_menu.js +67 -132
- package/source/js/third_party/barrage.min.js +93 -1
- package/source/js/third_party/envelope.min.js +1 -1
- package/source/js/third_party/post_ai.min.js +184 -1
- package/source/js/tw_cn.js +19 -18
- package/source/js/utils.js +50 -57
- package/layout/includes/widgets/home/hot/artalk.pug +0 -45
- package/layout/includes/widgets/home/hot/twikoo.pug +0 -46
- package/source/img/loading.avif +0 -0
- /package/layout/includes/widgets/{home → third-party}/hot/index.pug +0 -0
package/_config.yml
CHANGED
@@ -547,34 +547,31 @@ rightside:
|
|
547
547
|
# Footer
|
548
548
|
# 页脚
|
549
549
|
footer:
|
550
|
-
#
|
550
|
+
# 信息社交图标
|
551
551
|
information:
|
552
552
|
author: false # img url / false
|
553
553
|
left:
|
554
|
-
# Github: https://github.com/everfu || fab fa-github #
|
554
|
+
# Github: https://github.com/everfu || fab fa-github # 名称: 链接 || 图标
|
555
555
|
# Mail: mailto:o@everfu.cn || fab fa-envelope
|
556
556
|
right:
|
557
557
|
# Bilibili: https://space.bilibili.com/1329819902 || fab fa-bilibili
|
558
558
|
# Douyin: https://v.douyin.com/iJsLc8jt/ || fab fa-tiktok
|
559
559
|
group:
|
560
|
-
#
|
560
|
+
# 导航:
|
561
561
|
# Archives: /archives/
|
562
562
|
# Categories: /categories/
|
563
563
|
# Tags: /tags/
|
564
|
-
#
|
564
|
+
# 排列:
|
565
565
|
# Cookies: /cookies/
|
566
566
|
# Privacy: /privacy/
|
567
567
|
# Copyright: /copyright/
|
568
568
|
|
569
|
-
# Random link
|
570
569
|
# 随机友链
|
571
|
-
randomlink: false #
|
572
|
-
#
|
573
|
-
license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh #
|
570
|
+
randomlink: false # 随机友链
|
571
|
+
# 许可证
|
572
|
+
license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh # 许可证
|
574
573
|
|
575
|
-
# Footer information text
|
576
574
|
# 页脚信息文字
|
577
|
-
# Please do not delete the theme information, this is respect for the author
|
578
575
|
# 请不要删除主题信息,这是对作者的尊重
|
579
576
|
links:
|
580
577
|
- name: Theme
|
@@ -623,16 +620,16 @@ capsule:
|
|
623
620
|
keyboard:
|
624
621
|
enable: false
|
625
622
|
list:
|
626
|
-
# - name:
|
623
|
+
# - name: 关闭快捷菜单
|
627
624
|
# key: K
|
628
625
|
# func: keyboard
|
629
|
-
# - name:
|
626
|
+
# - name: 打开控制台
|
630
627
|
# key: A
|
631
628
|
# sco: showConsole
|
632
|
-
# - name:
|
629
|
+
# - name: 播放/暂停音乐
|
633
630
|
# key: M
|
634
631
|
# sco: musicToggle
|
635
|
-
# - name:
|
632
|
+
# - name: 打开友链
|
636
633
|
# key: L
|
637
634
|
# url: /links/
|
638
635
|
# --------------------------- end ---------------------------
|
@@ -645,7 +642,7 @@ lazyload:
|
|
645
642
|
# post, site
|
646
643
|
field: site
|
647
644
|
# 加载时替换图
|
648
|
-
placeholder:
|
645
|
+
placeholder: ''
|
649
646
|
# 加载失败替换图
|
650
647
|
errorimg: /img/error_load.avif
|
651
648
|
# --------------------------- end ---------------------------
|
@@ -657,6 +654,9 @@ loading:
|
|
657
654
|
# Full screen loading
|
658
655
|
# 全屏加载
|
659
656
|
fullpage: false
|
657
|
+
# Loading icon, default is siteicon
|
658
|
+
# 加载图标,不写默认siteicon
|
659
|
+
favicon: /img/favicon.png
|
660
660
|
# Pace loading
|
661
661
|
# Pace 加载
|
662
662
|
pace: true
|
@@ -980,14 +980,13 @@ google_adsense:
|
|
980
980
|
# --------------------------- end ---------------------------
|
981
981
|
|
982
982
|
# --------------------------- start ---------------------------
|
983
|
-
# Do not modify unless necessary
|
984
983
|
# 非必要请勿修改
|
985
984
|
CDN:
|
986
985
|
internal: local # local / cdnjs / jsdelivr / unpkg / custom
|
987
986
|
third_party: cdnjs # cdnjs / jsdelivr / unpkg / custom
|
988
|
-
version: true #
|
989
|
-
custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} #
|
990
|
-
#
|
987
|
+
version: true # 是否使用版本号
|
988
|
+
custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file} # 自定义格式
|
989
|
+
# 直接覆盖默认 CDN 链接(优先级最高)
|
991
990
|
options:
|
992
991
|
# algolia_search:
|
993
992
|
# instantsearch:
|
package/languages/default.yml
CHANGED
@@ -1,248 +1,248 @@
|
|
1
|
-
more:
|
2
|
-
star:
|
3
|
-
random:
|
4
|
-
upload:
|
5
|
-
totalk:
|
6
|
-
loading:
|
7
|
-
day: '
|
8
|
-
hot-tip:
|
9
|
-
|
1
|
+
more: 更多
|
2
|
+
star: 喜欢这篇的人也看了
|
3
|
+
random: 随便逛逛
|
4
|
+
upload: 发布时间:
|
5
|
+
totalk: 无需删除空行,直接输入评论即可
|
6
|
+
loading: 加载中...
|
7
|
+
day: ' 天'
|
8
|
+
hot-tip: 多人互动
|
9
|
+
|
10
|
+
# Language: 简体中文
|
10
11
|
theme:
|
11
|
-
dark:
|
12
|
-
light:
|
12
|
+
dark: 已切换至深色模式
|
13
|
+
light: 已切换至浅色模式
|
13
14
|
|
14
15
|
copy:
|
15
|
-
success:
|
16
|
-
error:
|
16
|
+
success: 复制成功
|
17
|
+
error: 复制失败
|
17
18
|
|
18
19
|
copy_copyright:
|
19
|
-
author:
|
20
|
-
link:
|
21
|
-
source:
|
22
|
-
info:
|
20
|
+
author: 作者
|
21
|
+
link: 链接
|
22
|
+
source: 来源
|
23
|
+
info: 著作权归作者所有。 商业转载请联系作者获得授权,非商业转载请注明出处。
|
23
24
|
|
24
25
|
time:
|
25
|
-
day: "
|
26
|
-
hour: "
|
27
|
-
just: "
|
28
|
-
min: "
|
29
|
-
month: "
|
26
|
+
day: "天前"
|
27
|
+
hour: "小时前"
|
28
|
+
just: "刚刚"
|
29
|
+
min: "分钟前"
|
30
|
+
month: "个月前"
|
30
31
|
|
31
32
|
page:
|
32
|
-
tag:
|
33
|
-
category:
|
34
|
-
tags:
|
35
|
-
categories:
|
36
|
-
archives:
|
37
|
-
404:
|
33
|
+
tag: 标签
|
34
|
+
category: 分类
|
35
|
+
tags: 全部标签
|
36
|
+
categories: 全部分类
|
37
|
+
archives: 文章
|
38
|
+
404: 页面没有找到
|
39
|
+
|
40
|
+
nav:
|
41
|
+
site_name_title: 返回博客主页
|
42
|
+
backtop: 返回顶部
|
43
|
+
travellings: 开往-友链接力
|
44
|
+
search: 搜索
|
45
|
+
randompost: 随机一篇文章
|
46
|
+
console: 中控台
|
38
47
|
|
39
48
|
home:
|
40
|
-
home:
|
41
|
-
sticky:
|
42
|
-
new:
|
43
|
-
read:
|
44
|
-
recommend:
|
45
|
-
recommendmore:
|
46
|
-
archives:
|
49
|
+
home: 推荐
|
50
|
+
sticky: 置顶
|
51
|
+
new: 最新
|
52
|
+
read: 未读
|
53
|
+
recommend: 荐
|
54
|
+
recommendmore: 更多推荐
|
55
|
+
archives: 全部文章
|
47
56
|
|
48
57
|
post:
|
49
|
-
reprint:
|
50
|
-
original:
|
51
|
-
cc:
|
52
|
-
posted:
|
53
|
-
updated:
|
54
|
-
wordcount:
|
55
|
-
minread:
|
56
|
-
ip:
|
57
|
-
pv:
|
58
|
-
comment:
|
58
|
+
reprint: 转载或翻译
|
59
|
+
original: 原创
|
60
|
+
cc: 该文章为${cc}文章,注意版权协议
|
61
|
+
posted: 发布于
|
62
|
+
updated: 最后更新于
|
63
|
+
wordcount: 文章字数
|
64
|
+
minread: 阅读耗时
|
65
|
+
ip: 作者IP归属地为
|
66
|
+
pv: 文章热度
|
67
|
+
comment: 评论数
|
59
68
|
copyright:
|
60
|
-
reprint:
|
61
|
-
original:
|
62
|
-
original_end:
|
69
|
+
reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
|
70
|
+
original: 本文是原创文章,采用
|
71
|
+
original_end: 协议,完整转载请注明来自
|
63
72
|
share:
|
64
|
-
qq:
|
65
|
-
weibo:
|
66
|
-
telegram:
|
67
|
-
twitter:
|
68
|
-
linkedin:
|
69
|
-
facebook:
|
70
|
-
link:
|
71
|
-
qrcode:
|
72
|
-
whatsapp:
|
73
|
+
qq: 分享到QQ
|
74
|
+
weibo: 分享到微博
|
75
|
+
telegram: 分享到Telegram
|
76
|
+
twitter: 分享到Twitter
|
77
|
+
linkedin: 分享到LinkedIn
|
78
|
+
facebook: 分享到Facebook
|
79
|
+
link: 复制文章链接
|
80
|
+
qrcode: 使用手机扫码阅读这篇文章
|
81
|
+
whatsapp: 分享到WhatsApp
|
73
82
|
ai:
|
74
|
-
title:
|
75
|
-
tip:
|
83
|
+
title: 文章摘要
|
84
|
+
tip: 投诉
|
76
85
|
nav:
|
77
|
-
next:
|
78
|
-
prev:
|
79
|
-
|
80
|
-
|
81
|
-
nav:
|
82
|
-
site_name_title: Back to home
|
83
|
-
backtop: Back to top
|
84
|
-
travellings: Traveling - Friends Link
|
85
|
-
search: Search
|
86
|
-
randompost: Random post
|
87
|
-
console: Console
|
86
|
+
next: 下一篇
|
87
|
+
prev: 上一篇
|
88
88
|
|
89
89
|
award:
|
90
|
-
thanks:
|
91
|
-
tipping:
|
92
|
-
title:
|
90
|
+
thanks: 致谢
|
91
|
+
tipping: 赞赏作者
|
92
|
+
title: 赞赏名单
|
93
93
|
|
94
94
|
search:
|
95
|
-
empty:
|
96
|
-
hit:
|
97
|
-
placeholder:
|
98
|
-
count:
|
99
|
-
load:
|
95
|
+
empty: 找不到你查询的内容:${query}
|
96
|
+
hit: 找到 ${hits} 条结果,用时 ${time} 毫秒
|
97
|
+
placeholder: 输入关键词快速查找
|
98
|
+
count: 共 <b>${count}</b> 条结果。
|
99
|
+
load: 搜索中...
|
100
100
|
|
101
101
|
head:
|
102
|
-
noscript:
|
102
|
+
noscript: 开启JavaScript才能访问本站哦~
|
103
103
|
|
104
104
|
aside:
|
105
|
-
postcount: '
|
106
|
-
pv: '
|
107
|
-
uv: '
|
108
|
-
runtime: '
|
109
|
-
updatetime: '
|
110
|
-
wordcount: '
|
111
|
-
toc:
|
112
|
-
tagmore:
|
113
|
-
avatar:
|
114
|
-
hello:
|
115
|
-
back:
|
116
|
-
sticker:
|
117
|
-
newpost:
|
118
|
-
newcomment:
|
105
|
+
postcount: '文章总数 :'
|
106
|
+
pv: '总访问数 :'
|
107
|
+
uv: '总访客数 :'
|
108
|
+
runtime: '建站天数 :'
|
109
|
+
updatetime: '最后更新 :'
|
110
|
+
wordcount: '全站字数 :'
|
111
|
+
toc: 文章目录
|
112
|
+
tagmore: 查看全部
|
113
|
+
avatar: 头像
|
114
|
+
hello: 好久不见,
|
115
|
+
back: 欢迎再次回来,
|
116
|
+
sticker: 心情贴纸
|
117
|
+
newpost: 最近发布
|
118
|
+
newcomment: 最近评论
|
119
119
|
card:
|
120
|
-
posts: '
|
121
|
-
tags: '
|
122
|
-
categories: '
|
120
|
+
posts: '累计文章数:'
|
121
|
+
tags: '标签总数:'
|
122
|
+
categories: '分类总数:'
|
123
123
|
|
124
124
|
console:
|
125
|
-
comment_tip:
|
126
|
-
comment_title:
|
127
|
-
tag_tip:
|
128
|
-
tag_title:
|
129
|
-
switch_darkmode:
|
130
|
-
switch_hideAside:
|
131
|
-
switch_keyboard:
|
132
|
-
switch_music:
|
133
|
-
archive_unit:
|
134
|
-
recent_comment_more:
|
125
|
+
comment_tip: 互动
|
126
|
+
comment_title: 最新评论
|
127
|
+
tag_tip: 标签
|
128
|
+
tag_title: 寻找感兴趣的领域
|
129
|
+
switch_darkmode: 昼夜切换
|
130
|
+
switch_hideAside: 边栏显示控制
|
131
|
+
switch_keyboard: 键盘快捷键
|
132
|
+
switch_music: 音乐开关
|
133
|
+
archive_unit: 篇
|
134
|
+
recent_comment_more: 最近评论
|
135
135
|
newest_comment:
|
136
|
-
image:
|
137
|
-
link:
|
138
|
-
code:
|
139
|
-
emoji:
|
136
|
+
image: 图片
|
137
|
+
link: 链接
|
138
|
+
code: 代码
|
139
|
+
emoji: 表情
|
140
140
|
|
141
141
|
sidebar:
|
142
|
-
function:
|
143
|
-
darkmode:
|
144
|
-
siteinfo:
|
142
|
+
function: 功能
|
143
|
+
darkmode: 显示模式
|
144
|
+
siteinfo: 网站信息
|
145
145
|
|
146
146
|
footer:
|
147
|
-
description:
|
148
|
-
learnmore:
|
149
|
-
randomlink:
|
150
|
-
rss:
|
151
|
-
theme:
|
147
|
+
description: 来自${title}的文章
|
148
|
+
learnmore: 了解更多
|
149
|
+
randomlink: 友链
|
150
|
+
rss: 订阅
|
151
|
+
theme: 主题
|
152
152
|
|
153
153
|
cookies:
|
154
|
-
title:
|
155
|
-
tip:
|
156
|
-
privacy:
|
154
|
+
title: 协议提醒助手
|
155
|
+
tip: 查看本站为你的个人隐私做出的努力
|
156
|
+
privacy: 本站如何保护你的隐私
|
157
157
|
|
158
158
|
music:
|
159
|
-
hit:
|
159
|
+
hit: 音乐已暂停
|
160
160
|
|
161
161
|
404:
|
162
|
-
button:
|
162
|
+
button: 返回首页
|
163
163
|
|
164
164
|
link:
|
165
165
|
banner:
|
166
|
-
toComment:
|
167
|
-
random:
|
168
|
-
random:
|
169
|
-
to:
|
166
|
+
toComment: 申请友链
|
167
|
+
random: 随机访问
|
168
|
+
random: 点击前往按钮进入随机一个友链,不保证跳转网站的安全性和可用性。本次随机到的是本站友链:⌈ ${name} ⌋
|
169
|
+
to: 前往
|
170
170
|
|
171
171
|
keyboard:
|
172
|
-
title:
|
172
|
+
title: 博客快捷键
|
173
173
|
|
174
174
|
newest_comment:
|
175
|
-
error:
|
176
|
-
zero:
|
175
|
+
error: 无法获取评论,请确认相关配置是否正确。
|
176
|
+
zero: 没有评论
|
177
177
|
|
178
178
|
comment:
|
179
|
-
title:
|
179
|
+
title: 评论
|
180
180
|
|
181
181
|
commentBarrage:
|
182
|
-
title:
|
182
|
+
title: 热评
|
183
183
|
|
184
|
-
f12:
|
184
|
+
f12: 开发者模式已打开,请遵循GPL协议。
|
185
185
|
|
186
186
|
right_menu:
|
187
|
-
copy:
|
188
|
-
paste:
|
189
|
-
comment:
|
190
|
-
new:
|
191
|
-
link:
|
192
|
-
img:
|
193
|
-
downloadImg:
|
194
|
-
search:
|
195
|
-
dark:
|
196
|
-
light:
|
187
|
+
copy: 复制选中文本
|
188
|
+
paste: 粘贴文本
|
189
|
+
comment: 引用到评论
|
190
|
+
new: 新窗口打开
|
191
|
+
link: 复制链接地址
|
192
|
+
img: 复制此图片
|
193
|
+
downloadImg: 下载此图片
|
194
|
+
search: 站内搜索
|
195
|
+
dark: 浅色模式
|
196
|
+
light: 深色模式
|
197
197
|
chs_to_cht: 轉為繁體
|
198
198
|
cht_to_chs: 转为简体
|
199
|
-
img_error:
|
200
|
-
ctrl_original_menu:
|
199
|
+
img_error: 此图片无法复制与下载
|
200
|
+
ctrl_original_menu: 按住Ctrl+右键可打开浏览器右键菜单
|
201
201
|
barrage:
|
202
|
-
open:
|
203
|
-
close:
|
202
|
+
open: 显示热评
|
203
|
+
close: 关闭热评
|
204
204
|
music:
|
205
|
-
start:
|
206
|
-
stop:
|
207
|
-
back:
|
208
|
-
forward:
|
209
|
-
copyMusicName:
|
205
|
+
start: 播放音乐
|
206
|
+
stop: 暂停音乐
|
207
|
+
back: 切换到上一首
|
208
|
+
forward: 切换到下一首
|
209
|
+
copyMusicName: 复制歌名
|
210
210
|
|
211
211
|
pagination:
|
212
|
-
prev:
|
213
|
-
next:
|
214
|
-
to:
|
212
|
+
prev: 上一页
|
213
|
+
next: 下一页
|
214
|
+
to: 跳转到指定页面
|
215
215
|
|
216
216
|
about:
|
217
217
|
other:
|
218
218
|
oneself:
|
219
|
-
map_title:
|
220
|
-
info_title1:
|
221
|
-
info_title2:
|
219
|
+
map_title: 我现在住在
|
220
|
+
info_title1: 生于
|
221
|
+
info_title2: 现在职业
|
222
222
|
tj:
|
223
|
-
tip:
|
224
|
-
title:
|
223
|
+
tip: 数据
|
224
|
+
title: 访问统计
|
225
225
|
personalities:
|
226
|
-
tip1:
|
227
|
-
tip2:
|
226
|
+
tip1: 在
|
227
|
+
tip2: 了解更多关于
|
228
228
|
|
229
229
|
message:
|
230
|
-
close:
|
231
|
-
open:
|
230
|
+
close: 隐藏弹幕
|
231
|
+
open: 显示弹幕
|
232
232
|
|
233
233
|
essay:
|
234
|
-
tip0: '-
|
235
|
-
tip1: '-
|
236
|
-
link: '
|
234
|
+
tip0: '- 已展开所有短文 -'
|
235
|
+
tip1: '- 只展示最近 #{count} 条短文 -'
|
236
|
+
link: '链接'
|
237
237
|
|
238
238
|
rightside:
|
239
239
|
show:
|
240
|
-
gear:
|
241
|
-
toc:
|
242
|
-
comment:
|
243
|
-
top:
|
240
|
+
gear: 扩展
|
241
|
+
toc: 目录
|
242
|
+
comment: 评论
|
243
|
+
top: 返回顶部
|
244
244
|
barrage: 弹
|
245
245
|
hide:
|
246
246
|
translate: 简繁转换
|
247
|
-
mode:
|
248
|
-
aside:
|
247
|
+
mode: 显示模式切换
|
248
|
+
aside: 侧边栏
|
package/layout/archive.pug
CHANGED
@@ -14,4 +14,6 @@ block content
|
|
14
14
|
each post,index in page.posts.find({ parent: { $exists: false } }).data
|
15
15
|
include includes/widgets/home/postList
|
16
16
|
include includes/mixins/pagination
|
17
|
-
|
17
|
+
if theme.comment.hot_tip.enable
|
18
|
+
include ./includes/widgets/third-party/hot/index.pug
|
19
|
+
include includes/widgets/aside/aside
|
package/layout/category.pug
CHANGED
@@ -9,4 +9,6 @@ block content
|
|
9
9
|
each post,index in page.posts.find({ parent: { $exists: false } }).data
|
10
10
|
include includes/widgets/home/postList
|
11
11
|
include includes/mixins/pagination
|
12
|
-
|
12
|
+
if theme.comment.hot_tip.enable
|
13
|
+
include ./includes/widgets/third-party/hot/index.pug
|
14
|
+
include includes/widgets/aside/aside
|
@@ -1,10 +1,12 @@
|
|
1
|
+
- var showToc = !!page.toc && (toc(page.content) !== '' || page.encrypt === true);
|
2
|
+
|
1
3
|
script#config-diff.
|
2
4
|
var PAGE_CONFIG = {
|
3
5
|
is_post: !{is_post()},
|
4
6
|
is_page: !{!is_post() && !is_home()},
|
5
7
|
is_home: !{is_home()},
|
6
8
|
page: '!{page.type}',
|
7
|
-
toc: !{
|
9
|
+
toc: !{showToc},
|
8
10
|
comment: !{!!page.comment},
|
9
11
|
ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false},
|
10
12
|
color: !{page.color ? "'"+ page.color+"'" : false},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
div(id="loading-box" onclick="preloader.endLoading();" style="zoom:1")
|
2
2
|
div.loading-bg
|
3
|
-
img.loading-img.nolazyload(src=url_for(theme.site.icon), alt="loading image")
|
3
|
+
img.loading-img.nolazyload(src=url_for(theme.loading.favicon || theme.site.icon), alt="loading image")
|
4
4
|
|
5
5
|
script.
|
6
6
|
const preloader = {
|
@@ -50,11 +50,12 @@ div#rightMenu
|
|
50
50
|
div.rightMenu-item#menu-music-copyMusicName
|
51
51
|
i.solitude.fa-solid.fa-clone
|
52
52
|
span= _p('right_menu.music.copyMusicName')
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
53
|
+
if custom_list.length > 0
|
54
|
+
div.rightMenu-group.rightMenu-line.rightMenuOther
|
55
|
+
each item,index in custom_list
|
56
|
+
div.rightMenu-item(id=item.id class=item.class onclick=item.click+'||rm.hideRightMenu()')
|
57
|
+
i.solitude(class=item.icon)
|
58
|
+
span= item.name
|
58
59
|
div.rightMenu-group.rightMenu-line.rightMenuOther
|
59
60
|
if theme.right_menu.commentBarrage && theme.comment.use && theme.comment.commentBarrage
|
60
61
|
div.rightMenu-item#menu-commentBarrage(onclick="sco.switchCommentBarrage()")
|
@@ -16,16 +16,19 @@
|
|
16
16
|
.tags-group-wrapper
|
17
17
|
- const data = site.data.links.links
|
18
18
|
- for (let i = 0; i < 2; i++)
|
19
|
+
- var links = []
|
19
20
|
each x in data
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
21
|
+
each y in x.link_list
|
22
|
+
- links.push(y)
|
23
|
+
- var pairs = []
|
24
|
+
each link, index in links
|
25
|
+
if (index % 2 === 0)
|
26
|
+
- pairs.push([link])
|
27
|
+
else
|
28
|
+
- pairs[pairs.length - 1].push(link)
|
29
|
+
each pair in pairs
|
30
|
+
.tags-group-icon-pair
|
31
|
+
each y in pair
|
32
|
+
a.tags-group-icon(href=url_for(y.link), title=y.name)
|
33
|
+
img(src=y.avatar + (site.data.links.banner_suffix || ''), title=y.name)
|
34
|
+
span.tags-group-title=y.name
|
@@ -2,7 +2,7 @@
|
|
2
2
|
if theme.rightside.hide.enable
|
3
3
|
button.config(type='button' title=_p('rightside.show.gear') onclick='document.querySelector(".rs_hide").classList.toggle("show")')
|
4
4
|
i.fas.fa-gear.fa-spin
|
5
|
-
if
|
5
|
+
if showToc
|
6
6
|
button.mobile.toc(type='button' title=_p('rightside.show.toc') onclick="document.querySelector('#card-toc').classList.toggle('open')")
|
7
7
|
i.fas.fa-list
|
8
8
|
if page.comment
|