Merge branch 'main' into feat/theme-landing-2

This commit is contained in:
tangly1024.com
2024-02-08 10:13:51 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ function cleanBlock(post) {
delete pageBlock[i]?.value?.alive delete pageBlock[i]?.value?.alive
} }
delete post?.blockMap?.collection // delete post?.blockMap?.collection
return post return post
} }

View File

@@ -20,7 +20,7 @@ class MyDocument extends Document {
</>} </>}
{BLOG.FONT_URL?.map((fontUrl, index) => { {BLOG.FONT_URL?.map((fontUrl, index) => {
if (fontUrl.endsWith('.css')) { if (fontUrl.endsWith('.css') || fontUrl.includes('googleapis.com/css')) {
return <link key={index} rel="stylesheet" href={fontUrl} /> return <link key={index} rel="stylesheet" href={fontUrl} />
} else { } else {
return <link key={index} rel="preload" href={fontUrl} as="font" type="font/woff2" /> return <link key={index} rel="preload" href={fontUrl} as="font" type="font/woff2" />