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 =
+ const slotTop =
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 =
+ const slotTop =
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 }) => {
-