hexo-theme-solitude 2.0.12-rc.1 → 2.0.12

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
@@ -81,4 +81,6 @@ Check out the [Documentation](https://solitude.js.org/) for more information.
81
81
 
82
82
  ## License
83
83
 
84
- [MIT](./LICENSE) License © 2023-PRESENT [Ever Fu](https://github.com/everfu)
84
+ [MIT](./LICENSE) License © 2023-PRESENT [一小只托尼](https://github.com/everfu)
85
+
86
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
package/README_zh-Hans.md CHANGED
@@ -82,6 +82,6 @@
82
82
 
83
83
  ## 版权
84
84
 
85
- [MIT](./LICENSE) License © 2023-至今 [EverFu](https://github.com/efuo)
85
+ [MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/efuo)
86
86
 
87
87
  [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
package/README_zh-Hant.md CHANGED
@@ -79,4 +79,6 @@
79
79
 
80
80
  ## 版權
81
81
 
82
- [MIT](./LICENSE) License © 2023-至今 [Efu](https://github.com/everfu)
82
+ [MIT](./LICENSE) License © 2023-至今 [一小只托尼](https://github.com/everfu)
83
+
84
+ [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fvalor-x%2Fhexo-theme-solitude?ref=badge_large)
@@ -219,7 +219,6 @@ about:
219
219
  tj:
220
220
  tip: Data
221
221
  title: Access statistics
222
- post_tip: 'Stats from:'
223
222
  personalities:
224
223
  tip1: At
225
224
  tip2: 'Learn more:'
@@ -219,7 +219,6 @@ about:
219
219
  tj:
220
220
  tip: 数据
221
221
  title: 访问统计
222
- post_tip: 统计信息来自
223
222
  personalities:
224
223
  tip1: 在
225
224
  tip2: 了解更多关于
@@ -6,5 +6,6 @@ script#config-diff.
6
6
  page: '!{page.type}',
7
7
  toc: !{!!page.toc},
8
8
  comment: !{!!page.comment},
9
- ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false}
9
+ ai_text: !{is_post && page.ai_text ? "'"+ page.ai_text+"'" : false},
10
+ color: !{page.color ? "'"+ page.color+"'" : false},
10
11
  }
@@ -42,7 +42,7 @@ if theme.says.enable
42
42
  time.datetime(datetime=moment(item.date).format())
43
43
  if item.location
44
44
  .bber-info-location
45
- i.solitude.fa-solid.fa-map
45
+ i.solitude.fas.fa-location-dot
46
46
  = item.location
47
47
  if item.link
48
48
  a.bber-content-link(href=url_for(item.link) target="_blank")
@@ -9,13 +9,7 @@ if tj || oneself
9
9
  .author-content-item-tips=_p('about.other.tj.tip')
10
10
  span.author-content-item-title=_p('about.other.tj.title')
11
11
  #statistic
12
- .post-tips
13
- = _p('about.other.tj.post_tip')
14
- case tj.provider
15
- when '51la'
16
- a(href="https://v6.51.la/") 51la网站统计
17
- when 'baidu'
18
- a(href="https://tongji.baidu.com/") 百度统计
12
+ .post-tips!= _p(tj.desc)
19
13
  if tj.button
20
14
  .banner-button-group
21
15
  a.banner-button(href=url_for(tj.button_link))
@@ -42,7 +36,7 @@ if tj || oneself
42
36
  }
43
37
  s.innerHTML = html;
44
38
  });
45
- when 'baidu'
39
+ when 'custom'
46
40
  script.
47
41
  fetch("#{tj.url}")
48
42
  .then(res => res.json())
@@ -35,7 +35,7 @@
35
35
  span= min2read(page.content) + " min"
36
36
  if theme.post.meta.locate
37
37
  span.post-meta-position(title=_p('post.ip') + page.locate)
38
- i.post-meta-icon.solitude.fa-solid.fa-map
38
+ i.post-meta-icon.solitude.fas.fa-location-dot
39
39
  span= page.locate
40
40
  if theme.post.meta.pv
41
41
  a.post-meta-pv(href=url_for(page.path), title=_p('post.pv'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "2.0.12-rc.1",
3
+ "version": "2.0.12",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by everfu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -55,7 +55,9 @@
55
55
 
56
56
  #post-comment
57
57
  .post &
58
- padding 0 2rem
58
+ padding 0 2rem .5rem
59
+ +maxWidth768()
60
+ padding 0 .5rem .5rem
59
61
  > div.comment-head
60
62
  > div.comment-privacy
61
63
  display block
@@ -21,6 +21,7 @@ if hexo-config('loading.fullpage')
21
21
 
22
22
  .loading-img
23
23
  width 100px
24
+ height 100px
24
25
  margin auto
25
26
  animation-duration 0.2s
26
27
  animation-name loadingAction
@@ -12,6 +12,7 @@
12
12
  +maxWidth768()
13
13
  box-shadow var(--efu-shadow-border)
14
14
  padding: 1rem 1.3rem;
15
+ margin .5rem
15
16
 
16
17
  .post-copyright__author_group
17
18
  .post-copyright__author_img
@@ -206,7 +206,7 @@
206
206
  transition all .3s ease-out 0s
207
207
 
208
208
  i
209
- font-size 16px
209
+ font-size 13px
210
210
  margin-right 4px
211
211
 
212
212
  > div
@@ -204,6 +204,8 @@
204
204
  justify-content: space-between
205
205
  flex-wrap: wrap
206
206
  padding 0 2rem
207
+ +maxWidth768()
208
+ padding: 0 .5rem
207
209
 
208
210
  .tag_share
209
211
  .post-meta__tag-list
@@ -1,4 +1,9 @@
1
1
  const coverColor = () => {
2
+ const page_color = PAGE_CONFIG.color
3
+ if (page_color){
4
+ setThemeColors(page_color);
5
+ return;
6
+ }
2
7
  const path = document.getElementById("post-cover")?.src;
3
8
  path ? handleApiColor(path) : setDefaultThemeColors();
4
9
  }
@@ -1,4 +1,9 @@
1
1
  const coverColor = () => {
2
+ const page_color = PAGE_CONFIG.color
3
+ if (page_color){
4
+ setThemeColors(page_color);
5
+ return;
6
+ }
2
7
  const path = document.getElementById("post-cover")?.src;
3
8
  path ? handleApiColor(path) : setDefaultThemeColors();
4
9
  }
@@ -1,4 +1,9 @@
1
1
  const coverColor = () => {
2
+ const page_color = PAGE_CONFIG.color
3
+ if (page_color){
4
+ setThemeColors(page_color);
5
+ return;
6
+ }
2
7
  const path = document.getElementById("post-cover")?.src;
3
8
  path ? localColor(path) : setDefaultThemeColors();
4
9
  }
package/source/js/main.js CHANGED
@@ -154,10 +154,10 @@ const sco = {
154
154
  $console.classList.toggle("on", this.musicPlaying);
155
155
  if (this.musicPlaying) {
156
156
  $meting.aplayer.play();
157
- (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude st-pause-fill')
157
+ (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.stop) && ($rm_icon.className = 'solitude fas fa-pause')
158
158
  } else {
159
159
  $meting.aplayer.pause();
160
- (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude st-play-fill')
160
+ (typeof rm !== 'undefined') && rm?.menuItems.music[0] && ($rm_text.textContent = GLOBAL_CONFIG.right_menu.music.start) && ($rm_icon.className = 'solitude fas fa-play')
161
161
  }
162
162
  },
163
163
  switchCommentBarrage() {
@@ -108,7 +108,7 @@ window.oncontextmenu = (ele) => {
108
108
  if (document.body.clientWidth <= 768) return;
109
109
  let x = ele.clientX + 10;
110
110
  let y = ele.clientY;
111
- Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "block"));
111
+ Array.from(rm.menuItems.other).forEach((item) => (item.style.display = "flex"));
112
112
  rm.globalEvent = ele;
113
113
 
114
114
  let display = false;
@@ -117,9 +117,9 @@ window.oncontextmenu = (ele) => {
117
117
 
118
118
  if (selectTextNow && window.getSelection()) {
119
119
  display = true;
120
- rm.menuItems.copy.style.display = "block";
121
- GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "block");
122
- rm.menuItems.search && (rm.menuItems.search.style.display = "block");
120
+ rm.menuItems.copy.style.display = "flex";
121
+ GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "flex");
122
+ rm.menuItems.search && (rm.menuItems.search.style.display = "flex");
123
123
  } else {
124
124
  rm.menuItems.copy.style.display = "none";
125
125
  GLOBAL_CONFIG.comment && (rm.menuItems.comment.style.display = "none");
@@ -128,8 +128,8 @@ window.oncontextmenu = (ele) => {
128
128
 
129
129
  if (link) {
130
130
  display = true;
131
- rm.menuItems.new.style.display = "block";
132
- rm.menuItems.copyLink.style.display = "block";
131
+ rm.menuItems.new.style.display = "flex";
132
+ rm.menuItems.copyLink.style.display = "flex";
133
133
  rm.domhref = link;
134
134
  } else {
135
135
  rm.menuItems.new.style.display = "none";
@@ -138,8 +138,8 @@ window.oncontextmenu = (ele) => {
138
138
 
139
139
  if (src) {
140
140
  display = true;
141
- rm.menuItems.copyImg.style.display = "block";
142
- rm.menuItems.downloadImg.style.display = "block";
141
+ rm.menuItems.copyImg.style.display = "flex";
142
+ rm.menuItems.downloadImg.style.display = "flex";
143
143
  rm.domsrc = src;
144
144
  } else {
145
145
  rm.menuItems.copyImg.style.display = "none";
@@ -149,14 +149,14 @@ window.oncontextmenu = (ele) => {
149
149
  let tagName = ele.target.tagName.toLowerCase();
150
150
  if (tagName === "input" || tagName === "textarea") {
151
151
  display = true;
152
- rm.menuItems.paste.style.display = "block";
152
+ rm.menuItems.paste.style.display = "flex";
153
153
  } else {
154
154
  rm.menuItems.paste.style.display = "none";
155
155
  }
156
156
 
157
157
  if (tagName === "meting-js") {
158
158
  display = true;
159
- rm.menuItems.music.forEach((item) => (item.style.display = "block"));
159
+ rm.menuItems.music.forEach((item) => (item.style.display = "flex"));
160
160
  } else {
161
161
  rm.menuItems.music[0] &&
162
162
  rm.menuItems.music.forEach((item) => (item.style.display = "none"));