diff --git a/assets/css/_common/components/post/post-header.scss b/assets/css/_common/components/post/post-header.scss index 8be25e6..d185c4c 100644 --- a/assets/css/_common/components/post/post-header.scss +++ b/assets/css/_common/components/post/post-header.scss @@ -114,7 +114,7 @@ height: 0; } -@if $busuanzi_enable and $busuanzi_post_views { +@if $busuanzi_post_views { #busuanzi_container_page_pv { display: inline-block; } diff --git a/assets/css/_common/outline/footer/index.scss b/assets/css/_common/outline/footer/index.scss index 1c6964a..4bfdcd2 100644 --- a/assets/css/_common/outline/footer/index.scss +++ b/assets/css/_common/outline/footer/index.scss @@ -98,17 +98,15 @@ } } -@if $busuanzi_enable { - .busuanzi-count { - @if $busuanzi_visitors { - #busuanzi_container_site_uv { - display: none; - } +.busuanzi-count { + @if $busuanzi_visitors { + #busuanzi_container_site_uv { + display: none; } - @if $busuanzi_views { - #busuanzi_container_site_pv { - display: none; - } + } + @if $busuanzi_views { + #busuanzi_container_site_pv { + display: none; } } } diff --git a/assets/css/main.scss b/assets/css/main.scss index 718a92c..b43208e 100644 --- a/assets/css/main.scss +++ b/assets/css/main.scss @@ -34,7 +34,6 @@ $footer_vendors_enable : {{ isset $P.footer "vendors" }}; {{ end }} // Counter -$busuanzi_enable : {{ $P.busuanzi.enable }}; $busuanzi_visitors : {{ $P.busuanzi.visitors }}; $busuanzi_views : {{ $P.busuanzi.views }}; $busuanzi_post_views : {{ $P.busuanzi.postViews }}; diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 646ca35..947960d 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -753,6 +753,7 @@ params: # Waline comments system # More info seee: https://waline.js.org/ waline: + pageView: true placeholder: "请文明发言" emoji: false imgUploader: false @@ -859,12 +860,11 @@ params: # Show Views / Visitors of the website / page with busuanzi. # For more information: http://ibruce.info/2015/04/04/busuanzi/ busuanzi: - enable: true - visitors: true + visitors: false visitorsIcon: fa fa-user - views: true + views: false viewsIcon: fa fa-eye - postViews: true + postViews: false postViewsIcon: far fa-eye @@ -968,7 +968,7 @@ params: # Use Animate.css to animate everything. # For more information: https://animate.style motion: - enable: false + enable: true async: true transition: # All available transition variants: https://theme-next.js.org/animate/ diff --git a/images/screenshot.png b/images/screenshot.png index e9e016d..5c30e0a 100644 Binary files a/images/screenshot.png and b/images/screenshot.png differ diff --git a/images/tn.png b/images/tn.png index 563e227..10ab8e2 100644 Binary files a/images/tn.png and b/images/tn.png differ diff --git a/layouts/partials/_thirdparty/comment/giscus.html b/layouts/partials/_thirdparty/comment/giscus.html index 706ef23..d1b476f 100644 --- a/layouts/partials/_thirdparty/comment/giscus.html +++ b/layouts/partials/_thirdparty/comment/giscus.html @@ -1,5 +1,4 @@ {{- with .Site.Params.giscus }} -{{ printf "%t" (isset . "repo") }}