From 740150a22089cd0996b6c1a1158d19e3897d06e0 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Thu, 24 Aug 2023 00:26:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=9C=80=E6=96=B0=E8=AF=84?= =?UTF-8?q?=E8=AE=BA=E5=9B=BE=E7=89=87=E6=87=92=E5=8A=A0=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/modules/footer.html | 9 +++++-- templates/modules/widgets/aside/comments.html | 19 ++++++++++---- .../modules/widgets/cardNewestComments.html | 5 +++- templates/modules/widgets/console.html | 26 +++++++++++-------- 4 files changed, 40 insertions(+), 19 deletions(-) diff --git a/templates/modules/footer.html b/templates/modules/footer.html index 8ddcb96f..1027bc93 100644 --- a/templates/modules/footer.html +++ b/templates/modules/footer.html @@ -13,7 +13,10 @@ + th:with="img = @{${theme.config.footer.social_media.centerImg}}" + th:src="${isLazyload ? '' : img}" + th:data-lazy-src="${ isLazyload ? img : ''}" + title="返回顶部" onclick="btf.scrollToDest(0, 500)"> @@ -109,7 +112,9 @@ -

diff --git a/templates/modules/widgets/aside/comments.html b/templates/modules/widgets/aside/comments.html index 7f4e962b..b0d4ec0d 100644 --- a/templates/modules/widgets/aside/comments.html +++ b/templates/modules/widgets/aside/comments.html @@ -6,15 +6,20 @@
- - 头像 + + 头像
+ th:href="${url}" th:title="${comment.spec.content}" th:text="${comment.spec.content}" data-pjax-state="">
@@ -38,10 +43,14 @@ includeReply: false // 是否包括最新回复,默认:false }).then(function (res) { let commenthtml = ''; + let name = 'src' + if([[${isLazyload}]]){ + name = 'data-lazy-src' + } res.forEach((items)=>{ commenthtml += `