From eda508e338c35d8f59e20d434a4e18dc4ce5b2ee Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 12 Oct 2021 10:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E8=92=9C=E5=AD=90=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=8A=BD=E7=A6=BB=EF=BC=8C=E9=A6=96=E9=A1=B5=E5=88=97=E6=95=B0?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Footer.js | 20 +++++++++++++++----- components/SideBarEmbed.js | 1 - components/SideBarResponsive.js | 10 ---------- layouts/DefaultLayout.js | 6 +++++- 4 files changed, 20 insertions(+), 17 deletions(-) diff --git a/components/Footer.js b/components/Footer.js index d0240f04..a0e5332c 100644 --- a/components/Footer.js +++ b/components/Footer.js @@ -6,12 +6,22 @@ const Footer = ({ fullWidth = true }) => { const y = d.getFullYear() return ( ) } diff --git a/components/SideBarEmbed.js b/components/SideBarEmbed.js index 3cb3d60b..023faa9f 100644 --- a/components/SideBarEmbed.js +++ b/components/SideBarEmbed.js @@ -49,7 +49,6 @@ const SideBarEmbed = ({ tags, currentTag, post }) => { {/* 站点信息 */}

-
diff --git a/components/SideBarResponsive.js b/components/SideBarResponsive.js index 5ab17e8c..020116bb 100644 --- a/components/SideBarResponsive.js +++ b/components/SideBarResponsive.js @@ -49,16 +49,6 @@ const SideBarResponsive = ({ tags, currentTag, post }) => { {/* 站点信息 */}

-
- - pv - - | - uv - -
-
diff --git a/layouts/DefaultLayout.js b/layouts/DefaultLayout.js index 96c4fa65..dbefe752 100644 --- a/layouts/DefaultLayout.js +++ b/layouts/DefaultLayout.js @@ -8,6 +8,7 @@ import CommonHead from '@/components/CommonHead' import TopNav from '@/components/TopNav' import Tags from '@/components/Tags' import SideBarResponsive from '@/components/SideBarResponsive' +import Footer from '@/components/Footer' const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => { const meta = { @@ -76,7 +77,7 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
{/* 文章列表 */} -
+
{!postsToShow.length && (

No posts found.

)} @@ -87,6 +88,9 @@ const DefaultLayout = ({ tags, posts, page, currentTag, ...customMeta }) => {
+
+