mirror of
https://github.com/Nezumi-2711/onedrive-vercel-index.git
synced 2026-09-22 13:38:45 +00:00
configurable font family (google fonts)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import Document, { Head, Html, Main, NextScript } from 'next/document'
|
||||
import siteConfig from '../config/site.json'
|
||||
|
||||
class MyDocument extends Document {
|
||||
render() {
|
||||
@@ -7,6 +8,14 @@ class MyDocument extends Document {
|
||||
<Head>
|
||||
<meta name="description" content="OneDrive Vercel Index" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="true" />
|
||||
<link
|
||||
href={`https://fonts.googleapis.com/css2?family=${
|
||||
siteConfig.googleFont
|
||||
}:wght@${siteConfig.googleFontWeights.join(';')}&display=swap`}
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</Head>
|
||||
<body>
|
||||
<Main />
|
||||
|
||||
Reference in New Issue
Block a user