hexo-theme-solitude 1.10.2 → 1.10.3

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
@@ -906,8 +906,8 @@ CDN:
906
906
  version: true
907
907
 
908
908
  # Custom format
909
- # For example: https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}
910
- custom_format: https://cdn.staticfile.net/${cdnjs_name}/${version}/${min_cdnjs_file}
909
+ # For example: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}
910
+ custom_format: //open.lightxi.com/cdnjs/ajax/libs/${cdnjs_name}/${version}/${min_cdnjs_file}
911
911
 
912
912
  option:
913
913
  solitude_css: https://cdn2.codesign.qq.com/icons/7pOrz0WXB5ZWJPX/latest/iconfont.css
@@ -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.10.2",
30
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.10.3",
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;border-radius:0 5px 5px 0",
@@ -1,5 +1,5 @@
1
1
  .aside-content#aside-content
2
- - var noSticky, Sticky, customNoSticky, customSticky;
2
+ - var noSticky, Sticky
3
3
  if(is_home())
4
4
  - noSticky = theme.aside.home.noSticky.split(',')
5
5
  - Sticky = theme.aside.home.Sticky.split(',')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.10.2",
3
+ "version": "1.10.3",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -534,6 +534,7 @@ if hexo-config('aside.card.style') == 1
534
534
  color var(--efu-fontcolor)
535
535
 
536
536
  &:hover
537
+ transform rotate(360deg)
537
538
  color var(--efu-theme)
538
539
 
539
540
  .card-info__desc_group
@@ -112,6 +112,9 @@
112
112
  border-radius: 0;
113
113
  margin 0
114
114
 
115
+ / #page &
116
+ border-radius 8px
117
+
115
118
  .waterfall
116
119
  opacity 0
117
120
  transition .3s
package/source/js/main.js CHANGED
@@ -313,7 +313,9 @@ let sco = {
313
313
  const observer = new IntersectionObserver((entries) => {
314
314
  entries.forEach(entry => {
315
315
  if (entry.isIntersecting) {
316
- waterfall(entry.target) || entry.target.classList.add('show');
316
+ setTimeout(() => {
317
+ waterfall(entry.target) || entry.target.classList.add('show');
318
+ }, 300);
317
319
  }
318
320
  });
319
321
  });
@@ -368,7 +370,7 @@ let sco = {
368
370
  * @description 添加图片标题
369
371
  */
370
372
  addPhotoFigcaption: function () {
371
- document.querySelectorAll('#article-container img').forEach(image => {
373
+ document.querySelectorAll('#article-container img:not(.gallery-item img)').forEach(image => {
372
374
  const captionText = image.getAttribute('alt');
373
375
  captionText && image.insertAdjacentHTML('afterend', `<div class="img-alt is-center">${captionText}</div>`);
374
376
  });
@@ -799,7 +801,7 @@ class tabs {
799
801
  window.refreshFn = () => {
800
802
  const {is_home, is_page, page, is_post} = PAGE_CONFIG;
801
803
  const {runtime, lazyload, lightbox, randomlink, covercolor, post_ai} = GLOBAL_CONFIG;
802
- const timeSelector = is_home ? '.post-meta-date time' : is_post ? '.post-meta-date time' : '.datatime'
804
+ const timeSelector = (is_home ? '.post-meta-date time' : is_post ? '.post-meta-date time' : '.datatime') + ', .webinfo-item time';
803
805
  document.body.setAttribute('data-type', page);
804
806
  sco.changeTimeFormat(document.querySelectorAll(timeSelector));
805
807
  runtime && sco.addRuntime();