From 31c260e6ceffa2131e502b6734acd8424e9bb2d2 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Sat, 19 Aug 2023 01:32:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=87=92=E5=8A=A0=E8=BD=BD=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/album.html | 12 ++++++--- templates/assets/js/main.js | 8 +++--- templates/macro/content-links.html | 27 +++++++++++++------ templates/modules/head.html | 2 +- templates/modules/layouts/layout.html | 3 ++- templates/modules/post-list.html | 6 +++-- templates/modules/post/relatedPosts.html | 10 ++++--- .../modules/widgets/about-widgets/game.html | 12 +++++---- .../modules/widgets/aside/friend-link.html | 10 ++++--- templates/modules/widgets/aside/profile.html | 21 ++++++++++----- .../modules/widgets/aside/recent-posts.html | 6 +++-- templates/modules/widgets/top-group.html | 12 ++++++--- templates/moments.html | 4 ++- templates/photos.html | 12 ++++++--- templates/post.html | 8 ++++-- 15 files changed, 104 insertions(+), 49 deletions(-) diff --git a/templates/album.html b/templates/album.html index 59f5d15f..2c8e9af3 100644 --- a/templates/album.html +++ b/templates/album.html @@ -23,7 +23,10 @@
[[${#annotations.get(group, 'description')}]]
{ - img.setAttribute("srcset", GLOBAL_CONFIG.lazyload.error); - } + data_src: 'lazy-src' }) } @@ -465,14 +463,14 @@ document.addEventListener('DOMContentLoaded', function () { }) clickFnOfSubMenu() - + GLOBAL_CONFIG.lazyload.enable && lazyloadImg() GLOBAL_CONFIG.copyright !== undefined && addCopyright() } window.refreshFn = function () { initAdjust(); - GLOBAL_CONFIG.lazyload.enable && lazyloadImg() + if (GLOBAL_CONFIG.isPost) { addRuntime(); } else { diff --git a/templates/macro/content-links.html b/templates/macro/content-links.html index 8a148470..14179fc4 100644 --- a/templates/macro/content-links.html +++ b/templates/macro/content-links.html @@ -24,11 +24,11 @@ -