From 2cd75f3e34294656cce66e6bd32105e4032174e3 Mon Sep 17 00:00:00 2001
From: tangly1024
Date: Mon, 6 Dec 2021 17:29:38 +0800
Subject: [PATCH] =?UTF-8?q?feature:=20SEO=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
blog.config.js | 6 +++---
components/BlogPostCard.js | 4 ++--
components/InfoCard.js | 15 ++++++---------
components/NavBar.js | 2 +-
components/RecommendPosts.js | 2 +-
components/SideBar.js | 2 +-
components/TopNav.js | 2 +-
package.json | 2 ++
pages/404.js | 2 +-
pages/_app.js | 2 +-
pages/article/[slug].js | 6 +++---
11 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/blog.config.js b/blog.config.js
index 4480601e..6b570fd8 100644
--- a/blog.config.js
+++ b/blog.config.js
@@ -1,9 +1,9 @@
const BLOG = {
- title: '塘里1024',
- author: '塘里',
+ title: '塘里独立博客',
+ author: '塘里1024',
email: 'tlyong1992@hotmail.com',
link: 'https://tangly1024.com',
- description: '分享有趣的技术与思考',
+ description: '欢迎访问塘里1024的博客,这里主要是关于编程技术与投资理财相关的思考。我的本职是一名程序员、写博客是我的业余爱好',
lang: 'zh-CN', // ['zh-CN','en-US'] default lang => see /lib/lang.js for more.
notionPageId: process.env.NOTION_PAGE_ID || 'bee1fccfa3bd47a1a7be83cc71372d83', // Important page_id!!!
notionAccessToken: process.env.NOTION_ACCESS_TOKEN || '', // Useful if you prefer not to make your database public
diff --git a/components/BlogPostCard.js b/components/BlogPostCard.js
index 589b613e..56b05e23 100644
--- a/components/BlogPostCard.js
+++ b/components/BlogPostCard.js
@@ -30,9 +30,9 @@ const BlogPostCard = ({ post, tags }) => {
-
+
{post.summary}
diff --git a/components/InfoCard.js b/components/InfoCard.js
index b0821aaf..4033fcbc 100644
--- a/components/InfoCard.js
+++ b/components/InfoCard.js
@@ -5,21 +5,18 @@ import Router from 'next/router'
const InfoCard = () => {
return <>
-
-
-
{ Router.push('/') }}>
+
+
{ Router.push('/') }}>
-
{BLOG.author}
-
{BLOG.description}
-
+
{BLOG.title}
>
}
diff --git a/components/NavBar.js b/components/NavBar.js
index 4061205e..8f17f600 100644
--- a/components/NavBar.js
+++ b/components/NavBar.js
@@ -86,7 +86,7 @@ const Header = ({ navBarTitle, fullWidth = true }) => {
{
const { locale } = useGlobal()
return
-
{locale.COMMON.RELATE_POSTS}
+
{locale.COMMON.RELATE_POSTS}
{filteredPosts.map(post => (
- {post.title}
diff --git a/components/SideBar.js b/components/SideBar.js
index f2ca7eae..b31ecc1e 100644
--- a/components/SideBar.js
+++ b/components/SideBar.js
@@ -25,7 +25,7 @@ import { faAngleDoubleRight, faArchive, faTags, faThList } from '@fortawesome/fr
*/
const SideBar = ({ tags, currentTag, post, posts, categories, currentCategory, currentSearch }) => {
const { locale } = useGlobal()
- return