diff --git a/components/ArticleDetail.js b/components/ArticleDetail.js
index 9a055ffd..dabf6941 100644
--- a/components/ArticleDetail.js
+++ b/components/ArticleDetail.js
@@ -80,15 +80,13 @@ export default function ArticleDetail ({ post, blockMap, recommendPosts, prev, n
)}
-
+
-
diff --git a/components/Footer.js b/components/Footer.js
index 8755e53f..0a0cb6bb 100644
--- a/components/Footer.js
+++ b/components/Footer.js
@@ -1,4 +1,4 @@
-import { faCopyright, faEye, faShieldAlt, faUser } from '@fortawesome/free-solid-svg-icons'
+import { faCopyright, faEye, faShieldAlt, faUsers } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import React from 'react'
import Link from 'next/link'
@@ -15,11 +15,11 @@ const Footer = ({ title }) => {
闽ICP备20010331号
隐私政策
-
- pv
+
+ pv
-
- uv
+
+ uv
{title}
diff --git a/components/InfoCard.js b/components/InfoCard.js
index 95cfc4d6..7077a84a 100644
--- a/components/InfoCard.js
+++ b/components/InfoCard.js
@@ -2,8 +2,10 @@ import BLOG from '@/blog.config'
import Image from 'next/image'
import React from 'react'
import Router from 'next/router'
+import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
+import { faEye, faFileAlt, faUsers } from '@fortawesome/free-solid-svg-icons'
-const InfoCard = () => {
+const InfoCard = ({ postCount }) => {
return <>
{ Router.push('/') }}>
@@ -17,6 +19,15 @@ const InfoCard = () => {
/>
{BLOG.title}
+
+
+
+
+
+
+
+ {postCount}
+
>
}
diff --git a/components/SideAreaLeft.js b/components/SideAreaLeft.js
index 13ed6d51..5cb644d5 100644
--- a/components/SideAreaLeft.js
+++ b/components/SideAreaLeft.js
@@ -24,11 +24,12 @@ import React from 'react'
const SideAreaLeft = ({ title, tags, currentTag, post, posts, categories, currentCategory, currentSearch }) => {
const { locale } = useGlobal()
const showToc = post && post.toc && post.toc.length > 1
+ const postCount = posts.length
return <>
{/* 菜单 */}
diff --git a/lib/busuanzi.js b/lib/busuanzi.js
index 49713446..a7b854fa 100644
--- a/lib/busuanzi.js
+++ b/lib/busuanzi.js
@@ -55,7 +55,7 @@ bszCaller = {
const fetch = () => {
bszTag && bszTag.hides()
bszCaller.fetch('//busuanzi.ibruce.info/busuanzi?jsonpCallback=BusuanziCallback', function (t) {
- // console.log('不蒜子请求结果',t)
+ console.log('不蒜子请求结果',t)
bszTag.texts(t), bszTag.shows()
})
}
@@ -64,20 +64,32 @@ bszTag = {
bszs: ['site_pv', 'page_pv', 'site_uv'],
texts: function (n) {
this.bszs.map(function (t) {
- const e = document.getElementById('busuanzi_value_' + t)
- e && (e.innerHTML = n[t])
+ const e = document.getElementsByClassName('busuanzi_value_' + t)
+ if(e){
+ for (var element of e) {
+ element.innerHTML = n[t]
+ }
+ }
})
},
hides: function () {
this.bszs.map(function (t) {
- const e = document.getElementById('busuanzi_container_' + t)
- e && (e.style.display = 'none')
+ const e = document.getElementsByClassName('busuanzi_container_' + t)
+ if(e){
+ for (var element of e){
+ element.style.display = 'none'
+ }
+ }
})
},
shows: function () {
this.bszs.map(function (t) {
- const e = document.getElementById('busuanzi_container_' + t)
- e && (e.style.display = 'inline')
+ const e = document.getElementsByClassName('busuanzi_container_' + t)
+ if(e){
+ for(var element of e){
+ element.style.display = 'inline'
+ }
+ }
})
}
}