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:
|
910
|
-
custom_format:
|
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.
|
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",
|
package/package.json
CHANGED
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
|
-
|
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();
|