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 @@ -