From 5449b9afb40977faa94b207a70844e5ef30c054e Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Thu, 9 Feb 2023 10:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=A1=AC=E7=BA=BF=E5=92=8C?= =?UTF-8?q?=E6=97=A0=E8=A1=AC=E7=BA=BF=E5=AD=97=E4=BD=93=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- blog.config.js | 3 ++- pages/_document.js | 2 +- themes/medium/LayoutCategory.js | 2 +- themes/medium/LayoutSlug.js | 4 ++-- themes/medium/LayoutTag.js | 2 +- themes/medium/components/ArticleLock.js | 2 +- themes/medium/components/BlogPostCard.js | 2 +- themes/medium/components/Catalog.js | 2 +- themes/medium/components/GroupMenu.js | 2 +- themes/medium/components/InfoCard.js | 2 +- themes/medium/components/LogoBar.js | 2 +- themes/medium/components/Progress.js | 2 +- 12 files changed, 14 insertions(+), 13 deletions(-) diff --git a/blog.config.js b/blog.config.js index fe3e8619..bcc9b741 100644 --- a/blog.config.js +++ b/blog.config.js @@ -22,7 +22,8 @@ const BLOG = { CONTACT_TELEGRAM: 'https://t.me/tangly_1024', // 你的telegram 地址 例如 https://t.me/tangly_1024 CONTACT_LINKEDIN: '', // 你的linkedIn 首页 - // 网站默认使用PingFangSC及NotoSansSC, + // 网站默认使用PingFangSC及NotoSansSC + FONT_STYLE: 'font-serif', // ['font-serif','font-sans'] 两种可选,分别是衬线和无衬线: 参考 https://www.jianshu.com/p/55e410bd2115 // 如需自定义字体,请将CUSTOM_FONT改为 true,并将CUSTOM_FONT_URL改为你的字体CSS地址,同时在CUSTOM_FONT_SANS与CUSTOM_FONT_SERIF中指定你的font-family CUSTOM_FONT: process.env.NEXT_PUBLIC_CUSTOM_FONT || false, // 是否使用自定义字体 // 自定义字体示例: 请先将 CUSTOM_FONT 改为 true, 并将 CUSTOM_FONT_URL 改为你的字体CSS地址,同时在 CUSTOM_FONT_SANS 与 CUSTOM_FONT_SERIF 中指定你的 fontfamily diff --git a/pages/_document.js b/pages/_document.js index c24fa5c9..509230ca 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -17,7 +17,7 @@ class MyDocument extends Document { - +
diff --git a/themes/medium/LayoutCategory.js b/themes/medium/LayoutCategory.js index 7522e264..c20a4cde 100644 --- a/themes/medium/LayoutCategory.js +++ b/themes/medium/LayoutCategory.js @@ -5,7 +5,7 @@ import BLOG from '@/blog.config' export const LayoutCategory = props => { const { category } = props - const slotTop =
分类:
{category}
+ const slotTop =
分类:
{category}
return {BLOG.POST_LIST_STYLE === 'page' ? : } diff --git a/themes/medium/LayoutSlug.js b/themes/medium/LayoutSlug.js index 086215fc..5550675d 100644 --- a/themes/medium/LayoutSlug.js +++ b/themes/medium/LayoutSlug.js @@ -43,10 +43,10 @@ export const LayoutSlug = props => { {!lock &&
{/* title */} -

{post?.title}

+

{post?.title}

{/* meta */} -
+
{date} | diff --git a/themes/medium/LayoutTag.js b/themes/medium/LayoutTag.js index 41164ce3..51a7ca59 100644 --- a/themes/medium/LayoutTag.js +++ b/themes/medium/LayoutTag.js @@ -5,7 +5,7 @@ import BlogPostListPage from './components/BlogPostListPage' export const LayoutTag = (props) => { const { tag } = props - const slotTop =
标签:
{tag}
+ const slotTop =
标签:
{tag}
return {BLOG.POST_LIST_STYLE === 'page' ? : } diff --git a/themes/medium/components/ArticleLock.js b/themes/medium/components/ArticleLock.js index aa870ac5..af7b4ec1 100644 --- a/themes/medium/components/ArticleLock.js +++ b/themes/medium/components/ArticleLock.js @@ -22,7 +22,7 @@ export const ArticleLock = props => { } } - return
+ return
{locale.COMMON.ARTICLE_LOCK_TIPS}
diff --git a/themes/medium/components/BlogPostCard.js b/themes/medium/components/BlogPostCard.js index 01770969..be243a01 100644 --- a/themes/medium/components/BlogPostCard.js +++ b/themes/medium/components/BlogPostCard.js @@ -20,7 +20,7 @@ const BlogPostCard = ({ post, showSummary }) => { href={`${BLOG.SUB_PATH}/${post.slug}`} passHref className={ - 'cursor-pointer font-bold font-sans hover:underline text-3xl leading-tight text-gray-700 dark:text-gray-300 hover:text-green-500 dark:hover:text-green-400' + 'cursor-pointer font-bold hover:underline text-3xl leading-tight text-gray-700 dark:text-gray-300 hover:text-green-500 dark:hover:text-green-400' }> {post.title} diff --git a/themes/medium/components/Catalog.js b/themes/medium/components/Catalog.js index af4b1156..f9499506 100644 --- a/themes/medium/components/Catalog.js +++ b/themes/medium/components/Catalog.js @@ -65,7 +65,7 @@ const Catalog = ({ toc }) => {
-