hexo-theme-solitude 1.7.0 → 1.7.1

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/languages/en.yml CHANGED
@@ -48,7 +48,7 @@ home:
48
48
  post:
49
49
  reprint: Reprint
50
50
  original: Original
51
- copyright: This article is a ${cc} article, pay attention to the copyright.
51
+ cc: This article is a ${cc} article, pay attention to the copyright.
52
52
  posted: Posted on
53
53
  updated: Last updated on
54
54
  wordcount: Word count
@@ -56,6 +56,10 @@ post:
56
56
  ip: The author's IP belongs to
57
57
  pv: PV
58
58
  comment: Comments
59
+ copyright:
60
+ reprint: This article is a reproduction or translation, and the copyright belongs to the original author. Please contact the original author for permission to republish this article.
61
+ original: This piece of writing is an original article, utilizing the
62
+ original_end: Agreement. For complete reproduction, please acknowledge the source as Courtesy of
59
63
 
60
64
  nav:
61
65
  site_name_title: Back to home
@@ -66,6 +66,10 @@ post:
66
66
  ip: 作者IP归属地为
67
67
  pv: 文章热度
68
68
  comment: 评论数
69
+ copyright:
70
+ reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
71
+ original: 本文是原创文章,采用
72
+ original_end: 协议,完整转载请注明来自
69
73
 
70
74
  award:
71
75
  thanks: 致谢
@@ -66,6 +66,10 @@ post:
66
66
  ip: 作者IP歸屬地為
67
67
  pv: 文章熱度
68
68
  comment: 評論數
69
+ copyright:
70
+ reprint: 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
71
+ original: 本文是原创文章,采用
72
+ original_end: 协议,完整转载请注明来自
69
73
 
70
74
  award:
71
75
  thanks: 致謝
@@ -22,7 +22,7 @@
22
22
  }
23
23
  }
24
24
 
25
- const sayhello2 = theme.aside.card.sayhello2.map(item => `"${item}"`) || [];
25
+ const sayhello2 = theme.aside?.card?.sayhello2?.map(item => `"${item}"`) || [];
26
26
 
27
27
  let comment = false
28
28
 
@@ -111,7 +111,7 @@ script.
111
111
  )(window)
112
112
 
113
113
  console.log(
114
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.7.0",
114
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.7.1",
115
115
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
116
116
  "padding: 5px 10px;color:white;background:#3e9f50;",
117
117
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
@@ -11,17 +11,17 @@
11
11
  include ./award
12
12
  if theme.post.rss
13
13
  .reward-link.mode
14
- a.reward-link-button(href=url_for(theme.post.rss), title="订阅")
14
+ a.reward-link-button(href=url_for(theme.post.rss))
15
15
  i.solitude.st-plant-fill
16
- | 订阅
16
+ = _p('footer.rss')
17
17
  if theme.post.default.copyright.enable || page.copyright
18
18
  .post-copyright__notice
19
19
  span.post-copyright-info
20
20
  if page.reprint
21
- | 本文是转载或翻译文章,版权归原作者所有。转载本文请联系原作者。
21
+ = _p('post.copyright.reprint')
22
22
  else
23
- | 本文是原创文章,采用
23
+ = _p('post.copyright.original')
24
24
  a(href=url_for(theme.post.default.copyright.licenurl))
25
25
  | #{theme.post.default.copyright.license}
26
- | 协议,完整转载请注明来自
26
+ = _p('post.copyright.original_end')
27
27
  a(href=url_for("/")) #{config.title}
@@ -4,7 +4,7 @@
4
4
  #post-firstinfo
5
5
  .meta-firstline
6
6
  - var cc = page.reprint ? _p('post.reprint') : _p('post.original')
7
- a.post-meta-original(title=_p('post.copyright').replace(/\$\{cc}/, cc))= cc
7
+ a.post-meta-original(title=_p('post.cc').replace(/\$\{cc}/, cc))= cc
8
8
  if page.categories.data.length > 0
9
9
  span.post-meta-categories
10
10
  a.post-meta-categories(href=url_for('/' + page.categories.data[0].path))= page.categories.data[0].name
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -51,15 +51,18 @@
51
51
  .post-copyright__notice
52
52
  font-size 12px
53
53
  margin 0.5rem 0
54
+ display flex
55
+ justify-content center
54
56
 
55
57
  .post-copyright-info
56
58
  padding-left 0
57
59
  color var(--efu-secondtext)
58
60
  overflow hidden
59
61
  display -webkit-box
60
- -webkit-line-clamp 1
62
+ -webkit-line-clamp 3
61
63
  -webkit-box-orient vertical
62
64
  text-align center
65
+ max-width 500px
63
66
 
64
67
  +maxWidth768()
65
68
  -webkit-line-clamp 2