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 += `