hexo-theme-solitude 1.8.12 → 1.8.13

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/README.md CHANGED
@@ -79,7 +79,7 @@
79
79
 
80
80
  <p align="center">
81
81
  <a href="https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg">
82
- <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg'/>
82
+ <img src='https://cdn.jsdelivr.net/gh/efuo/static/sponsors.svg' alt="赞助者"/>
83
83
  </a>
84
84
  </p>
85
85
 
package/_config.yml CHANGED
@@ -354,9 +354,14 @@ post:
354
354
  title: 感谢您的赞赏。
355
355
  desc: 因为有你们的支持,我才体会到写文章的价值。
356
356
  list:
357
- # - name: 支付宝
358
- # qcode: https://7.isyangs.cn/34/65f2e5a6d2ef5-34.png
359
- # color: var(--efu-blue)
357
+ # - name: 爱发电
358
+ # qcode: https://s3.qjqq.cn/47/661ba8e695f17.webp!color
359
+ # url: https://afdian.net/a/efu0u0/
360
+ # color: var(--efu-purple)
361
+ # - name: Github Sponsor
362
+ # qcode: https://s3.qjqq.cn/47/661ba900c4bc1.webp!color
363
+ # url: https://github.com/sponsors/efuo
364
+ # color: var(--efu-black)
360
365
  # 版权中订阅按钮跳转链接,填写地址后开启
361
366
  # Subscription button jump link in copyright
362
367
  rss: # /atom.xml
@@ -180,6 +180,11 @@ right_menu:
180
180
  forward: Forward
181
181
  copyMusicName: CopyName
182
182
 
183
+ pagination:
184
+ prev: Prev
185
+ next: Next
186
+ to: To page
187
+
183
188
  about:
184
189
  other:
185
190
  oneself:
package/languages/en.yml CHANGED
@@ -180,6 +180,11 @@ right_menu:
180
180
  forward: Forward
181
181
  copyMusicName: CopyName
182
182
 
183
+ pagination:
184
+ prev: Prev
185
+ next: Next
186
+ to: To page
187
+
183
188
  about:
184
189
  other:
185
190
  oneself:
@@ -182,6 +182,11 @@ right_menu:
182
182
  forward: 切换到下一首
183
183
  copyMusicName: 复制歌名
184
184
 
185
+ pagination:
186
+ prev: 上一页
187
+ next: 下一页
188
+ to: 跳转到指定页面
189
+
185
190
  about:
186
191
  other:
187
192
  oneself:
@@ -182,6 +182,11 @@ right_menu:
182
182
  forward: 切換到下一首
183
183
  copyMusicName: 複製歌名
184
184
 
185
+ pagination:
186
+ prev: 上一頁
187
+ next: 下一頁
188
+ to: 跳轉到指定頁面
189
+
185
190
  about:
186
191
  other:
187
192
  oneself:
@@ -27,7 +27,7 @@ include ../head/pwa.pug
27
27
 
28
28
  script.
29
29
  console.log(
30
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.12",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.8.13",
31
31
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
32
32
  "padding: 5px 10px;color:white;background:#3e9f50;",
33
33
  "padding: 5px 10px;color:white;background:#0084ff;",
@@ -1,8 +1,8 @@
1
1
  nav#pagination
2
2
  div.pagination
3
- - var options = {mid_size: 1,escape: false,next_text: '<div class="pagination_tips_next">下页</div> <i class="solitude st-arrow-right-bold"></i>',prev_text: '<i class="solitude st-arrow-left-bold"></i> <div class="pagination_tips_prev">上页</div>'}
3
+ - var options = {mid_size: 1,escape: false,next_text: `<div class="pagination_tips_next">${_p("pagination.next")}</div> <i class="solitude st-arrow-right-bold"></i>`,prev_text: `<i class="solitude st-arrow-left-bold"></i> <div class="pagination_tips_prev">${_p("pagination.prev")}</div>`}
4
4
  !=paginator(options)
5
5
  div.toPageGroup
6
- input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')" maxlength="3" title="跳转到指定页面" onkeyup="if (this.value === '0') this.value = ''")
6
+ input#toPageText(oninput="value=value.replace(/[^0-9]/g,'')" maxlength="3" title=_p('pagination.to') onkeyup="if (this.value === '0') this.value = ''")
7
7
  a#toPageButton(onclick="sco.toPage()")
8
8
  i.solitude.st-show-right-line
@@ -1,5 +1,5 @@
1
- .post-reward(onclick="AddRewardMask()")
2
- .reward-button(title=_p('award.tipping'))
1
+ .post-reward
2
+ .reward-button(title=_p('award.tipping') onclick="AddRewardMask()")
3
3
  i.solitude.st-hand-heart-fill
4
4
  =_p('award.tipping')
5
5
  .reward-main
@@ -9,7 +9,8 @@
9
9
  - let list = theme.post.award.list || []
10
10
  for item in list
11
11
  li.reward-item
12
- img.post-qr-code-img.nolazyload(src=item.qcode, alt=item.name, style="border-color: " + item.color)
12
+ a(href=url_for(item.url))
13
+ img.post-qr-code-img.nolazyload(src=item.qcode, alt=item.name, style="border-color: " + item.color)
13
14
  .post-qr-code-desc=item.name
14
15
  a.reward-main-btn(href=url_for(theme.post.award.appreciators))
15
16
  .reward-text= _p('award.title')
@@ -20,8 +21,6 @@ script.
20
21
  let rewardMainElements = document.querySelectorAll(".reward-main");
21
22
  let quitBoxElement = document.querySelector("#quit-box");
22
23
 
23
- console.log("RemoveRewardMask")
24
-
25
24
  rewardMainElements.forEach(element => {
26
25
  element.style.display = "none";
27
26
  });
@@ -35,8 +34,6 @@ script.
35
34
  let rewardMainElements = document.querySelectorAll(".reward-main");
36
35
  let quitBoxElement = document.querySelector("#quit-box");
37
36
 
38
- console.log("AddRewardMask")
39
-
40
37
  rewardMainElements.forEach(element => {
41
38
  element.style.display = "flex";
42
39
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.8.12",
3
+ "version": "1.8.13",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the efu.",
5
5
  "main": "package.json",
6
6
  "scripts": {