mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-03 23:16:52 +00:00
Merge branch 'main' into feat/theme-landing-2
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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" />
|
||||||
|
|||||||
Reference in New Issue
Block a user