From 916baf772d641e5a20145957a721dbdae18e263c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=85=E7=A6=BETristan?= Date: Tue, 24 Dec 2024 23:45:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8D=E8=92=9C=E5=AD=90=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=20&=20=E6=96=87=E7=AB=A0=E7=83=AD=E5=BA=A6=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- layout/includes/inject/body.pug | 2 +- layout/includes/widgets/post/postInfo.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/includes/inject/body.pug b/layout/includes/inject/body.pug index 835ac3c7..c3a19565 100644 --- a/layout/includes/inject/body.pug +++ b/layout/includes/inject/body.pug @@ -111,7 +111,7 @@ div if is_home() && theme.carousel && site.posts.data.filter(item => item.recommend === true).slice(0, 6) || false script. carousel_swiper() - if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv) + if theme.busuanzi && (theme.aside.siteinfo.uv || theme.aside.siteinfo.pv || is_post() && theme.post.meta.pv) script(defer pjax src=url_for(theme.cdn.busuanzi_js)) diff --git a/layout/includes/widgets/post/postInfo.pug b/layout/includes/widgets/post/postInfo.pug index deea3eb1..e95ee008 100644 --- a/layout/includes/widgets/post/postInfo.pug +++ b/layout/includes/widgets/post/postInfo.pug @@ -37,7 +37,7 @@ span.post-meta-position(title=_p('post.ip') + page.locate) i.post-meta-icon.solitude.fas.fa-location-dot span= page.locate - if theme.post.meta.pv + if theme.post.meta.pv && (theme.comment.use && theme.comment.pv || theme.busuanzi) a.post-meta-pv(href=url_for(page.path), title=_p('post.pv')) i.post-meta-icon.solitude.fa-solid.fa-fire-flame-curved if theme.comment.use && theme.comment.pv