hexo-theme-solitude 1.4.4 → 1.4.6
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/.github/FUNDING.yml +1 -1
- package/.github/ISSUE_TEMPLATE/bug_report.yml +2 -2
- package/languages/en-US.yml +1 -1
- package/languages/zh-CN.yml +1 -1
- package/languages/zh-TW.yml +1 -1
- package/layout/includes/inject/body.pug +0 -7
- package/layout/includes/widgets/home/bb/json.pug +7 -5
- package/layout/includes/widgets/home/bb/local.pug +6 -2
- package/layout/includes/widgets/home/bb/memos.pug +5 -4
- package/package.json +4 -4
- package/.github/ISSUE_TEMPLATE/config.yml +0 -13
- package/.github/ISSUE_TEMPLATE/feature_request.yml +0 -14
- /package/.github/workflows/{npm-publish.yml → npm-publish-github-packages.yml} +0 -0
package/.github/FUNDING.yml
CHANGED
@@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username
|
|
10
10
|
issuehunt: # Replace with a single IssueHunt username
|
11
11
|
otechie: # Replace with a single Otechie username
|
12
12
|
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
|
13
|
-
custom:
|
13
|
+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
|
@@ -1,4 +1,4 @@
|
|
1
|
-
name: Bug
|
1
|
+
name: Bug 报告 🐛
|
2
2
|
description: 本项目仅对最新版本进行维护,使用老版本出现问题的,请先升级到最新版本或使用dev版本,升级完后如果发现bug依然存在,请继续填写此issue。
|
3
3
|
labels: ['status: needs check']
|
4
4
|
body:
|
@@ -21,7 +21,7 @@ body:
|
|
21
21
|
attributes:
|
22
22
|
label: ⚠️ 搜索issues中是否已存在类似问题
|
23
23
|
description: >
|
24
|
-
请在 [历史issue](https://github.com/
|
24
|
+
请在 [历史issue](https://github.com/DuoSco/Hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
|
25
25
|
或相关日志的关键词来查找是否存在类似问题。
|
26
26
|
options:
|
27
27
|
- label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
|
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.4.
|
78
|
+
console: 'Program: Hexo | Theme: Hexo-Theme-Solitude | Author: WangZhuoSco、YiFeng | Github: https://github.com/wleelw/Hexo-theme-solitude | Version: v1.4.6 😄'
|
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.4.
|
78
|
+
console: '程序:Hexo | 主题:Hexo-Theme-Solitude | 作者:王卓Sco、亦封 | Github: https://github.com/wleelw/Hexo-theme-solitude | 版本:v1.4.6 😄'
|
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.4.
|
78
|
+
console: '程式:Hexo |主題:Hexo-Theme-Solitude |作者:王卓Sco、亦封 |Github位址: https://github.com/wleelw/Hexo-theme-solitude |版本:v1.4.6 😄'
|
79
79
|
|
80
80
|
aside:
|
81
81
|
postcount: '文章數:'
|
@@ -50,7 +50,6 @@ div
|
|
50
50
|
if theme.says.home_mini
|
51
51
|
script(src=url_for(theme.cdn.swiper_js))
|
52
52
|
|
53
|
-
// post-ai)
|
54
53
|
if theme.post_ai.enable
|
55
54
|
script(src=url_for(theme.cdn.sco_ai_js))
|
56
55
|
|
@@ -72,11 +71,9 @@ div
|
|
72
71
|
}
|
73
72
|
script(src=url_for(theme.cdn.cover_api))
|
74
73
|
|
75
|
-
// waterfall
|
76
74
|
if theme.says.enable
|
77
75
|
script(src=url_for(theme.cdn.waterfall))
|
78
76
|
|
79
|
-
// comment
|
80
77
|
if theme.comment.enable
|
81
78
|
case theme.comment.type
|
82
79
|
when 'twikoo'
|
@@ -92,15 +89,12 @@ div
|
|
92
89
|
when 'waline'
|
93
90
|
script(src=url_for(theme.cdn.waline_commentBarrage))
|
94
91
|
|
95
|
-
// music
|
96
92
|
if theme.music.enable
|
97
93
|
script(src=url_for(theme.cdn.music_js))
|
98
94
|
|
99
|
-
// pace 胶囊加载条(Capsule loading bar)
|
100
95
|
if theme.loading.pace
|
101
96
|
script(src=url_for(theme.cdn.pace_js))
|
102
97
|
|
103
|
-
// search
|
104
98
|
if theme.search.enable
|
105
99
|
case theme.search.type
|
106
100
|
when 'algolia'
|
@@ -109,7 +103,6 @@ div
|
|
109
103
|
when 'local'
|
110
104
|
script(src=url_for(theme.cdn.lunr_js))
|
111
105
|
|
112
|
-
// inject custom body
|
113
106
|
if theme.extends.body
|
114
107
|
each item in theme.extends.body
|
115
108
|
!= item
|
@@ -1,5 +1,7 @@
|
|
1
1
|
script.
|
2
|
-
|
2
|
+
async function getSays () {
|
3
|
+
document.addEventListener('DOMContentLoaded', this)
|
4
|
+
document.addEventListener('pjax:complete', this)
|
3
5
|
const htmlTagRegex = /<[^>]+>/g;
|
4
6
|
document.querySelector('#bber-talk').innerHTML = '<div class="li-style swiper-slide"><i class="scoicon sco-loading-line"></i></div>';
|
5
7
|
await fetch('!{theme.says.mode_link}')
|
@@ -16,8 +18,8 @@ script.
|
|
16
18
|
content += item.link ? `<i class="scoicon sco-link"></i>` : '';
|
17
19
|
return `<div class="li-style swiper-slide">${content}</div>`;
|
18
20
|
}).join('');
|
19
|
-
|
20
|
-
document.addEventListener('DOMContentLoaded', sco.initbbtalk)
|
21
|
-
document.addEventListener('pjax:complete', sco.initbbtalk)
|
21
|
+
sco.initbbtalk();
|
22
22
|
}).catch(err => console.log('bbtime |', err));
|
23
|
-
}
|
23
|
+
}
|
24
|
+
document.addEventListener('DOMContentLoaded', getSays)
|
25
|
+
document.addEventListener('pjax:complete', getSays)
|
@@ -12,5 +12,9 @@ each item, i in site.data.essay.essay_list.slice(0, 10)
|
|
12
12
|
if item.link
|
13
13
|
i.scoicon.sco-links
|
14
14
|
script.
|
15
|
-
document.addEventListener('DOMContentLoaded',
|
16
|
-
|
15
|
+
document.addEventListener('DOMContentLoaded',()=>{
|
16
|
+
sco.initbbtalk();
|
17
|
+
})
|
18
|
+
document.addEventListener('pjax:complete',()=>{
|
19
|
+
sco.initbbtalk();
|
20
|
+
})
|
@@ -1,5 +1,5 @@
|
|
1
1
|
script.
|
2
|
-
|
2
|
+
async function getSays() {
|
3
3
|
document.querySelector('#bber-talk').innerHTML = '<div class="li-style swiper-slide"><i class="scoicon sco-loading-line"></i></div>'
|
4
4
|
await fetch('!{theme.says.mode_link}')
|
5
5
|
.then(response => response.json())
|
@@ -20,8 +20,9 @@ script.
|
|
20
20
|
|
21
21
|
return `<div class="li-style swiper-slide">${content + aplayer + video + imageBox + link}</div>`
|
22
22
|
}).join(' ')
|
23
|
-
|
24
|
-
document.addEventListener('pjax:complete', sco.initbbtalk)
|
23
|
+
sco.initbbtalk();
|
25
24
|
})
|
26
25
|
.catch(error => console.error('bbtime | ', error));
|
27
|
-
}
|
26
|
+
}
|
27
|
+
document.addEventListener('DOMContentLoaded', getSays)
|
28
|
+
document.addEventListener('pjax:complete', getSays)
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "hexo-theme-solitude",
|
3
|
-
"version": "1.4.
|
4
|
-
"description": "A beautiful, powerful, and efficient Hexo theme developed by the
|
3
|
+
"version": "1.4.6",
|
4
|
+
"description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
|
5
5
|
"main": "package.json",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
@@ -26,7 +26,7 @@
|
|
26
26
|
"url": "https://github.com/wleelw/hexo-theme-solitude/issues",
|
27
27
|
"email": "me@wzsco.top"
|
28
28
|
},
|
29
|
-
"homepage": "https://blog.wzsco.
|
29
|
+
"homepage": "https://blog.wzsco.cn/",
|
30
30
|
"author": "Hexo-Theme-Solitude<me@wzsco.top>",
|
31
31
|
"license": "GNU"
|
32
|
-
}
|
32
|
+
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
blank_issues_enabled: false
|
2
|
-
contact_links:
|
3
|
-
- name: Questions about Solitude
|
4
|
-
url: https://github.com/wleelw/hexo-theme-solitude/discussions
|
5
|
-
about: 一些使用问题请到 Discussion 询问。 Please ask questions in Discussion.
|
6
|
-
|
7
|
-
- name: Solitude Q&A
|
8
|
-
url: https://docs.wzsco.top/guide/FAQ
|
9
|
-
about: Solitude Q&A
|
10
|
-
|
11
|
-
- name: QQ 群
|
12
|
-
url: https://qm.qq.com/q/WA2DGLfKW6
|
13
|
-
about: '群号 773016811'
|
@@ -1,14 +0,0 @@
|
|
1
|
-
name: Feature request
|
2
|
-
description: 为这个项目提出一个想法 | Suggest an idea for this project
|
3
|
-
title: '[Feature]: '
|
4
|
-
|
5
|
-
body:
|
6
|
-
- type: textarea
|
7
|
-
id: feature-request
|
8
|
-
attributes:
|
9
|
-
label: 想要的功能 | What feature do you want?
|
10
|
-
description: 描述你需要的新功能 | A clear and concise description of what the feature is.
|
11
|
-
placeholder:
|
12
|
-
value:
|
13
|
-
validations:
|
14
|
-
require: true
|
File without changes
|