From 4e289dda616f1fd47135ad9178794ab46d5a3148 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Thu, 23 Dec 2021 17:42:06 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E8=AF=95=E4=B8=80=E4=B8=8B=E5=9B=BE?= =?UTF-8?q?=E7=89=87API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 3 ++- components/Header.js | 2 +- components/InfoCard.js | 4 ++-- components/LatestPostsGroup.js | 4 ++-- components/SideAreaLeft.js | 4 ++-- components/SideAreaRight.js | 4 ++-- pages/_document.js | 2 +- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/blog.config.js b/blog.config.js index d250381b..b1b45541 100644 --- a/blog.config.js +++ b/blog.config.js @@ -4,7 +4,8 @@ const BLOG = { email: 'tlyong1992@hotmail.com', link: 'https://tangly1024.com', description: '分享编程技术与记录生活', - headerStrings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '欢迎来到我的博客🎉'], // 首页文字 + headerStrings: ['Hi,我是一个程序员', 'Hi,我是一个打工人', 'Hi,我是一个干饭人', '唐风集里,收卷波澜'], // Index words + bannerImage: 'http://bing.creepersan.com/api/v1/img-current', // Index Banner Image 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/Header.js b/components/Header.js index 668d20b8..2f1873f8 100644 --- a/components/Header.js +++ b/components/Header.js @@ -93,7 +93,7 @@ export default function Header () { style={{ height: 'calc(100vh + 1px)', backgroundImage: - 'linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.4), rgba(0, 0, 0, 0.5) ),url("./bg_image.jpg")' + `linear-gradient(rgba(0, 0, 0, 0.5), rgba(0,0,0,0.4), rgba(0, 0, 0, 0.5) ),url('${BLOG.bannerImage}')` }} >
diff --git a/components/InfoCard.js b/components/InfoCard.js index 9afc803f..27e03a23 100644 --- a/components/InfoCard.js +++ b/components/InfoCard.js @@ -5,7 +5,7 @@ import React from 'react' const InfoCard = ({ postCount }) => { return <> -
{ Router.push('/') }}> +
{ Router.push('/') }}>
{BLOG.title} { height={120} loading='lazy' src='/avatar.jpg' - className='rounded-full border-black' + className='rounded-full' />
{BLOG.title}
diff --git a/components/LatestPostsGroup.js b/components/LatestPostsGroup.js index a754553c..3b7d5b31 100644 --- a/components/LatestPostsGroup.js +++ b/components/LatestPostsGroup.js @@ -33,8 +33,8 @@ const LatestPostsGroup = ({ posts, sliceCount = 5 }) => { return ( -
+
{post.title}
diff --git a/components/SideAreaLeft.js b/components/SideAreaLeft.js index 0e402c89..9c388745 100644 --- a/components/SideAreaLeft.js +++ b/components/SideAreaLeft.js @@ -25,7 +25,7 @@ const SideAreaLeft = ({ title, tags, currentTag, post, posts, categories, curren return <>