From 9deec1998a64c85cf080bb2f658aedd124927600 Mon Sep 17 00:00:00 2001
From: "1152958806@qq.com" <17683872107czx>
Date: Mon, 28 Aug 2023 09:31:52 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=81=AF=E7=AE=B1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
templates/album.html | 2 +-
templates/assets/js/custom.js | 4 ++--
templates/assets/js/main.js | 9 ++-------
templates/assets/js/utils.js | 11 +----------
templates/macro/bangumi-item.html | 2 +-
templates/macro/content-links.html | 4 ++--
6 files changed, 9 insertions(+), 23 deletions(-)
diff --git a/templates/album.html b/templates/album.html
index 94961ce7..05c2d856 100644
--- a/templates/album.html
+++ b/templates/album.html
@@ -42,7 +42,7 @@
[[${theme.config.photos.bigTitle}]]
-
+
{
function ($0, $1) {
var str = $1.split(",",4);
contents += `
-
-
+
diff --git a/templates/assets/js/main.js b/templates/assets/js/main.js
index 6230b404..a2688f03 100644
--- a/templates/assets/js/main.js
+++ b/templates/assets/js/main.js
@@ -131,13 +131,8 @@ document.addEventListener('DOMContentLoaded', function () {
ele.each(function (i, o) {
const $this = $(o)
const lazyloadSrc = $this.attr('data-lazy-src') || $this.attr('src')
- const lazyloadSrc1600 = lazyloadSrc + '_1600w'
const dataCaption = $this.attr('alt') || ''
- if (lazyloadSrc.indexOf('!blogimg') != -1) {
- $this.wrap(``)
- } else {
- $this.wrap(``)
- }
+ $this.wrap(``)
})
@@ -163,7 +158,7 @@ document.addEventListener('DOMContentLoaded', function () {
const jqLoadAndRun = () => {
const $fancyboxEle = GLOBAL_CONFIG.lightbox === 'fancybox'
- ? document.querySelectorAll('#article-container :not(a):not(.gallery-group):not(.site-card-avatar):not(.flink-item-info):not(.rss-plan-info-group):not(.bangumi-picture):not(.introduction-card) > img, #article-container > img,.bber-container-img > img')
+ ? document.querySelectorAll('#article-container :not(a):not(.rss-plan-info-group):not(.no-lightbox) > img, #article-container > img,.bber-container-img > img')
: []
const fbLengthNoZero = $fancyboxEle.length > 0
const $jgEle = document.querySelectorAll('#article-container .gallery')
diff --git a/templates/assets/js/utils.js b/templates/assets/js/utils.js
index 2bbb75c6..1c003e51 100644
--- a/templates/assets/js/utils.js
+++ b/templates/assets/js/utils.js
@@ -89,9 +89,6 @@ var btf = {
}
}
-
-
-
/**
* fancybox
*/
@@ -100,14 +97,8 @@ var btf = {
ele.each(function (i, o) {
const $this = $(o)
const lazyloadSrc = $this.attr('data-lazy-src') || $this.attr('src')
- const lazyloadSrc1600 = lazyloadSrc + '_1600w'
const dataCaption = $this.attr('alt') || ''
- if (lazyloadSrc.indexOf('!blogimg') != -1) {
- $this.wrap(``)
- } else {
- $this.wrap(``)
- }
-
+ $this.wrap(``)
})
$().fancybox({
diff --git a/templates/macro/bangumi-item.html b/templates/macro/bangumi-item.html
index e1930676..b83ed476 100644
--- a/templates/macro/bangumi-item.html
+++ b/templates/macro/bangumi-item.html
@@ -2,7 +2,7 @@
-
+
![]()
-
+
![]()
-