move custom font to _document
This commit is contained in:
1 parent
86a02a945b
commit
0fec2fdbab
2 files changed
+21
-7
No files matched your search
@@ -38,13 +38,6 @@ export default class MyApp extends App {
|
||||
href="/feed.xml"
|
||||
/>
|
||||
|
||||
{/* Google Fonts */}
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;900&display=swap"
|
||||
rel="preload"
|
||||
as="style"
|
||||
/>
|
||||
|
||||
<YMetrika account={24027460} />
|
||||
<GAnalytics account={'UA-60209057-1'} />
|
||||
</Head>
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document'
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
<Html>
|
||||
<Head>
|
||||
{/* Google Fonts */}
|
||||
<link
|
||||
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;900&display=swap"
|
||||
rel="preload"
|
||||
as="style"
|
||||
/>
|
||||
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user