hexo-theme-solitude 1.4.5 → 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.
@@ -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: ['https://github.com/wleelw/hexo-theme-solitude/assets/74389842/abf4a023-9f0d-40c1-969d-41ecb2d36c61'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13
+ custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -1,4 +1,4 @@
1
- name: Bug report 🐛
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/wleelw/hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
24
+ 请在 [历史issue](https://github.com/DuoSco/Hexo-theme-solitude/issues) 中清空输入框,搜索你的问题
25
25
  或相关日志的关键词来查找是否存在类似问题。
26
26
  options:
27
27
  - label: 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue
@@ -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.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 :'
@@ -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.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: '文章总数 :'
@@ -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.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: '文章數:'
@@ -111,9 +111,6 @@ div#js-pjax
111
111
  if page.type === 'album' && theme.album.enable
112
112
  script.
113
113
  initGallery()
114
- if is_home() && theme.says.home_mini
115
- script.
116
- sco.initbbtalk()
117
114
  if page.type === 'says' && theme.says.enable
118
115
  script.
119
116
  window.addEventListener('resize', utils.throttle(function () {
@@ -1,5 +1,7 @@
1
1
  script.
2
- !async function () {
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)
@@ -10,4 +10,11 @@ each item, i in site.data.essay.essay_list.slice(0, 10)
10
10
  if item.bilibili
11
11
  i.scoicon.sco-bilibili-line
12
12
  if item.link
13
- i.scoicon.sco-links
13
+ i.scoicon.sco-links
14
+ script.
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
- !async function () {
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
- document.addEventListener('DOMContentLoaded', sco.initbbtalk)
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.5",
4
- "description": "A beautiful, powerful, and efficient Hexo theme developed by the DuoSco team",
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.top/",
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