hexo-theme-shokax 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- package/_config.yml +18 -17
- package/package.json +1 -1
- package/source/js/_app/player.js +2 -1
package/_config.yml
CHANGED
@@ -11,7 +11,6 @@ open_graph:
|
|
11
11
|
#fb_admins:
|
12
12
|
#fb_app_id:
|
13
13
|
|
14
|
-
|
15
14
|
grayMode: false # 全站黑白滤镜
|
16
15
|
# 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
|
17
16
|
# 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
|
@@ -29,6 +28,8 @@ experiments:
|
|
29
28
|
disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
|
30
29
|
|
31
30
|
playerAPI: "https://api.injahow.cn" # 结尾不带/,只填写域名
|
31
|
+
# 如果条件允许,请参考 https://github.com/injahow/meting-api 自建API
|
32
|
+
# 建议使用vercel自行部署,请参考: https://github.com/xizeyoupan/Meting-API
|
32
33
|
|
33
34
|
icon:
|
34
35
|
favicon: "/favicon.ico"
|
@@ -46,9 +47,9 @@ visitor:
|
|
46
47
|
|
47
48
|
darkmode: false
|
48
49
|
auto_dark: # 自动亮/暗模式
|
49
|
-
enable: true
|
50
|
-
start: 20
|
51
|
-
end: 7
|
50
|
+
enable: true #是否开启
|
51
|
+
start: 20 #开始时间
|
52
|
+
end: 7 #结束时间
|
52
53
|
|
53
54
|
auto_scroll: true
|
54
55
|
|
@@ -139,7 +140,7 @@ twikoo:
|
|
139
140
|
# https://waline.js.org/
|
140
141
|
waline:
|
141
142
|
enable: false
|
142
|
-
serverURL:
|
143
|
+
serverURL: ""
|
143
144
|
lang: "zh-CN"
|
144
145
|
locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
|
145
146
|
emoji: # 表情包
|
@@ -183,7 +184,6 @@ giscus:
|
|
183
184
|
commentTheme:
|
184
185
|
lang:
|
185
186
|
|
186
|
-
|
187
187
|
# Social Links
|
188
188
|
# Usage: `Key: permalink || icon || color`
|
189
189
|
# Key is the link label showing to end users.
|
@@ -209,7 +209,7 @@ sidebar:
|
|
209
209
|
# Sidebar Position.
|
210
210
|
position: left
|
211
211
|
# position: right
|
212
|
-
# Replace the default avatar image and set the url here.
|
212
|
+
# Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
|
213
213
|
avatar: avatar.jpg
|
214
214
|
|
215
215
|
widgets:
|
@@ -229,9 +229,9 @@ footer:
|
|
229
229
|
count: true
|
230
230
|
powered: true
|
231
231
|
lantern:
|
232
|
-
enable: true
|
233
|
-
word1: 中
|
234
|
-
word2: 秋
|
232
|
+
enable: true #是否开启
|
233
|
+
word1: 中 #第一个字
|
234
|
+
word2: 秋 #第二个字
|
235
235
|
icp: # ICP备案
|
236
236
|
enable: false
|
237
237
|
icon: "beian.webp" #网安备案图片
|
@@ -278,14 +278,15 @@ creative_commons:
|
|
278
278
|
language: deed.zh
|
279
279
|
|
280
280
|
# bgm
|
281
|
+
# 不使用请打开noplayer功能
|
281
282
|
audio:
|
282
|
-
- title: 列表1
|
283
|
-
list:
|
284
|
-
- https://music.163.com/#/playlist?id=2943811283
|
285
|
-
- https://music.163.com/#/playlist?id=2297706586
|
286
|
-
- title: 列表2
|
287
|
-
list:
|
288
|
-
- https://music.163.com/#/playlist?id=2031842656
|
283
|
+
# - title: 列表1
|
284
|
+
# list:
|
285
|
+
# - https://music.163.com/#/playlist?id=2943811283
|
286
|
+
# - https://music.163.com/#/playlist?id=2297706586
|
287
|
+
# - title: 列表2
|
288
|
+
# list:
|
289
|
+
# - https://music.163.com/#/playlist?id=2031842656
|
289
290
|
|
290
291
|
# random image api
|
291
292
|
image_server: # "https://acg.xydwz.cn/api/api.php"
|
package/package.json
CHANGED
package/source/js/_app/player.js
CHANGED
@@ -388,7 +388,7 @@ const mediaPlayer = function (t, config) {
|
|
388
388
|
resolve(list);
|
389
389
|
}
|
390
390
|
else {
|
391
|
-
fetch(`${CONFIG.playerAPI}/meting
|
391
|
+
fetch(`${CONFIG.playerAPI}/meting/?server=` + meta[0] + '&type=' + meta[1] + '&id=' + meta[2] + '&r=' + Math.random())
|
392
392
|
.then(function (response) {
|
393
393
|
return response.json();
|
394
394
|
}).then(function (json) {
|
@@ -431,6 +431,7 @@ const mediaPlayer = function (t, config) {
|
|
431
431
|
if (this.options.rawList !== newList) {
|
432
432
|
this.options.rawList = newList;
|
433
433
|
playlist.clear();
|
434
|
+
this.fetch();
|
434
435
|
}
|
435
436
|
}
|
436
437
|
else {
|