From e906ac31d8e99497edbf3ed1014e591fad44b7ee Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Fri, 10 Mar 2023 15:10:48 +0800 Subject: [PATCH] =?UTF-8?q?simple=20=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 3 +++ themes/simple/components/BlogItem.js | 4 ++-- themes/simple/components/BlogListPage.js | 4 ++-- themes/simple/components/Header.js | 2 +- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/blog.config.js b/blog.config.js index fd3274ba..bb063c18 100644 --- a/blog.config.js +++ b/blog.config.js @@ -220,6 +220,9 @@ const BLOG = { HOME_BANNER_IMAGE: process.env.NEXT_PUBLIC_HOME_BANNER_IMAGE || './bg_image.jpg', // 首页背景大图, 会被notion中的封面图覆盖,若无封面图则会使用代码中的 /public/bg_image.jpg 文件 DESCRIPTION: process.env.NEXT_PUBLIC_DESCRIPTION || '这是一个由NotionNext生成的站点', // 站点描述,被notion中的页面描述覆盖 + // 网站图片 + IMG_URL_TYPE: process.env.NEXT_PUBLIC_IMG_TYPE || 'Notion', // ['Notion','AMAZON'] 站点图片前缀 默认 Notion:(https://notion.so/images/xx) , AMAZON(https://s3.us-west-2.amazonaws.com/xxx) + // 开发相关 NOTION_ACCESS_TOKEN: process.env.NOTION_ACCESS_TOKEN || '', // Useful if you prefer not to make your database public DEBUG: process.env.NEXT_PUBLIC_DEBUG || false, // 是否显示调试按钮 diff --git a/themes/simple/components/BlogItem.js b/themes/simple/components/BlogItem.js index 038aeda7..ff90aaa8 100644 --- a/themes/simple/components/BlogItem.js +++ b/themes/simple/components/BlogItem.js @@ -18,8 +18,8 @@ export const BlogItem = props => {
{BLOG.AUTHOR} - {post.date?.start_date || post.createdTime} - {post.category && - {post.category}} - {post.tags && post.tags?.length > 0 && post.tags.map(t => / {t})} + {post.category && - {post.category}} + {post.tags && post.tags?.length > 0 && post.tags.map(t => / {t})}
diff --git a/themes/simple/components/BlogListPage.js b/themes/simple/components/BlogListPage.js index f260da04..41bcf947 100644 --- a/themes/simple/components/BlogListPage.js +++ b/themes/simple/components/BlogListPage.js @@ -26,12 +26,12 @@ export const BlogListPage = props => {
+ className={`${showPrev ? 'text-blue-400 border-b border-blue-400 visible ' : ' invisible bg-gray pointer-events-none '} no-underline pb-1 px-3`}> NEWER POSTS + className={`${showNext ? 'text-blue-400 border-b border-blue-400 visible' : ' invisible bg-gray pointer-events-none '} no-underline pb-1 px-3`}> OLDER POSTS
diff --git a/themes/simple/components/Header.js b/themes/simple/components/Header.js index 16104a56..2f6dc105 100644 --- a/themes/simple/components/Header.js +++ b/themes/simple/components/Header.js @@ -17,7 +17,7 @@ export const Header = (props) => { {/* 可使用一张单图作为logo */} {/* eslint-disable-next-line @next/next/no-img-element */} {/* */} -
+
{/* eslint-disable-next-line @next/next/no-img-element */} {BLOG.AUTHOR}