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