From 420c98e27ca280547074b45a5ac7aa3b3b7ab1c7 Mon Sep 17 00:00:00 2001 From: jmal Date: Thu, 26 Sep 2024 12:05:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=9A=E5=AE=A2=E6=96=87=E7=AB=A0?= =?UTF-8?q?=E4=B8=AD=E5=8F=AF=E7=82=B9=E5=87=BB=E9=A2=84=E8=A7=88=E5=9B=BE?= =?UTF-8?q?=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/article.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/resources/templates/article.html b/src/main/resources/templates/article.html index 622066c8..d88ce301 100644 --- a/src/main/resources/templates/article.html +++ b/src/main/resources/templates/article.html @@ -114,6 +114,12 @@ img.on('load', function () { img.removeClass("lazy"); }) + if (!img.parent().is("a")) { + new Viewer(img.get(0), { + navbar: false, + toolbar: false + }); + } observer.unobserve(entry.target); } });