Merge pull request #83 from uWayLu/bugfix/NoStylesheetsInHeadComponent

fix: 編譯時的引入外部字體方式提示
This commit is contained in:
tangly1024
2022-03-17 10:41:35 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -41,8 +41,6 @@ const CommonHead = ({ meta, children }) => {
<meta property='article:author' content={BLOG.AUTHOR} />
</>
)}
{/* 谷歌字体镜像 */}
<link href="https://fonts.loli.net/css2?family=Noto+Serif+SC&display=swap" rel="stylesheet"/>
{children}
</Head>
}

View File

@@ -15,6 +15,8 @@ class MyDocument extends Document {
<Head>
<link rel='icon' href='/favicon.ico' />
<link rel='icon' href='/favicon.svg' type='image/svg+xml' />
{/* 谷歌字体镜像 */}
<link href="https://fonts.loli.net/css2?family=Noto+Serif+SC&display=swap" rel="stylesheet"/>
<CommonScript />
</Head>