hexo-theme-solitude 2.1.13 → 2.1.14

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 CHANGED
@@ -279,7 +279,7 @@ post:
279
279
  license: CC BY-NC-SA 4.0
280
280
  # License link
281
281
  # 许可证链接
282
- licenurl: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
282
+ licenurl: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans
283
283
  # Article meta information
284
284
  # 文章元信息
285
285
  meta:
@@ -570,7 +570,7 @@ footer:
570
570
  # 随机友链
571
571
  randomlink: false # 随机友链
572
572
  # 许可证
573
- license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh # 许可证
573
+ license: # https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh-hans # 许可证
574
574
 
575
575
  # 备案
576
576
  beian:
@@ -56,9 +56,15 @@
56
56
  #qrcode
57
57
  .reward-dec=_p('post.share.qrcode')
58
58
  script(pjax).
59
- typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), '!{path}');
59
+ typeof QRCode === 'function' && new QRCode(document.getElementById("qrcode"), {
60
+ text: '!{path}',
61
+ correctLevel : QRCode.CorrectLevel.L
62
+ });
60
63
  window.addEventListener('DOMContentLoaded', () => {
61
- new QRCode(document.getElementById("qrcode"), '!{path}');
64
+ new QRCode(document.getElementById("qrcode"), {
65
+ text: '!{path}',
66
+ correctLevel : QRCode.CorrectLevel.L
67
+ });
62
68
  });
63
69
 
64
70
  if copyright.enable || page.copyright
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.1.13",
3
+ "version": "2.1.14",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
package/plugins.yml CHANGED
@@ -1,11 +1,11 @@
1
1
  algolia_search:
2
2
  name: algoliasearch
3
3
  file: dist/algoliasearch.umd.js
4
- version: 5.14.2
4
+ version: 5.17.1
5
5
  instantsearch:
6
6
  name: instantsearch.js
7
7
  file: dist/instantsearch.production.min.js
8
- version: 4.75.5
8
+ version: 4.75.6
9
9
  pjax:
10
10
  name: pjax
11
11
  file: pjax.min.js
@@ -18,16 +18,16 @@ waline_js:
18
18
  name: '@waline/client'
19
19
  file: dist/waline.js
20
20
  other_name: waline
21
- version: 3.3.2
21
+ version: 3.4.2
22
22
  waline_css:
23
23
  name: '@waline/client'
24
24
  file: dist/waline.css
25
- version: 3.3.2
25
+ version: 3.4.2
26
26
  other_name: waline
27
27
  valine:
28
28
  name: valine
29
29
  file: dist/Valine.min.js
30
- version: 1.5.2
30
+ version: 1.5.3
31
31
  artalk_css:
32
32
  name: artalk
33
33
  file: dist/Artalk.css
@@ -88,7 +88,7 @@ snackbar:
88
88
  fontawesome:
89
89
  name: '@fortawesome/fontawesome-free'
90
90
  file: css/all.min.css
91
- version: 6.7.1
91
+ version: 6.7.2
92
92
  other_name: font-awesome
93
93
  medium_zoom:
94
94
  name: medium-zoom
@@ -107,7 +107,7 @@ fancyapps_css:
107
107
  mermaid_js:
108
108
  name: mermaid
109
109
  file: dist/mermaid.js
110
- version: 11.4.0
110
+ version: 11.4.1
111
111
  chart_js:
112
112
  name: chart.js
113
113
  file: dist/chart.umd.js
@@ -129,6 +129,6 @@ qrcode:
129
129
  other_name: qrcodejs
130
130
  color_thief:
131
131
  name: colorthief
132
- file: color-thief.min.js
132
+ file: dist/color-thief.min.js
133
133
  version: 2.6.0
134
134
  other_name: color-thief
@@ -148,6 +148,7 @@
148
148
  box-shadow: var(--efu-shadow-lightblack)
149
149
  border-radius: 12px
150
150
  border: var(--style-border-always)
151
+ image-rendering: pixelated
151
152
 
152
153
  .reward-main-btn
153
154
  background: var(--efu-secondbg)
package/source/js/main.js CHANGED
@@ -698,7 +698,7 @@ class tabs {
698
698
  const ele = document.createElement('div');
699
699
  ele.className = 'expire';
700
700
  ele.innerHTML = `<i class="solitude fas fa-circle-exclamation"></i>${expire.text_prev}${-(expire.time - ex)}${expire.text_next}`;
701
- const articleContainer = document.getElementById('article-container');
701
+ const articleContainer = document.querySelector('.article-container');
702
702
  articleContainer.insertAdjacentElement(expire.position === 'top' ? 'afterbegin' : 'beforeend', ele);
703
703
  }
704
704
  }