2022-10-17 23:37:01 +08:00
|
|
|
import Document, { Html, Head, Main, NextScript } from 'next/document';
|
2022-10-07 13:55:39 +08:00
|
|
|
|
2022-07-17 21:40:41 +08:00
|
|
|
class MyDocument extends Document {
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<Html lang="en" className="scroll-smooth">
|
|
|
|
<Head>
|
2022-10-17 23:37:01 +08:00
|
|
|
<link
|
|
|
|
rel="apple-touch-icon"
|
|
|
|
sizes="76x76"
|
|
|
|
href="/static/favicons/apple-touch-icon.png"
|
|
|
|
/>
|
2022-07-17 21:40:41 +08:00
|
|
|
<link
|
|
|
|
rel="icon"
|
|
|
|
type="image/png"
|
|
|
|
sizes="32x32"
|
|
|
|
href="/static/favicons/favicon-32x32.png"
|
|
|
|
/>
|
|
|
|
<link
|
|
|
|
rel="icon"
|
|
|
|
type="image/png"
|
|
|
|
sizes="16x16"
|
|
|
|
href="/static/favicons/favicon-16x16.png"
|
|
|
|
/>
|
|
|
|
<link rel="manifest" href="/static/favicons/site.webmanifest" />
|
2022-10-17 23:37:01 +08:00
|
|
|
<link
|
|
|
|
rel="mask-icon"
|
|
|
|
href="/static/favicons/safari-pinned-tab.svg"
|
|
|
|
color="#5bbad5"
|
|
|
|
/>
|
2022-07-17 21:40:41 +08:00
|
|
|
<meta name="msapplication-TileColor" content="#000000" />
|
2022-10-17 23:37:01 +08:00
|
|
|
<meta
|
|
|
|
name="theme-color"
|
|
|
|
media="(prefers-color-scheme: light)"
|
|
|
|
content="#fff"
|
|
|
|
/>
|
|
|
|
<meta
|
|
|
|
name="theme-color"
|
|
|
|
media="(prefers-color-scheme: dark)"
|
|
|
|
content="#000"
|
|
|
|
/>
|
2022-07-17 21:40:41 +08:00
|
|
|
<link rel="alternate" type="application/rss+xml" href="/feed.xml" />
|
|
|
|
</Head>
|
|
|
|
<body className="bg-white text-black antialiased dark:bg-gray-900 dark:text-white">
|
|
|
|
<Main />
|
|
|
|
<NextScript />
|
|
|
|
</body>
|
|
|
|
</Html>
|
2022-10-17 23:37:01 +08:00
|
|
|
);
|
2022-07-17 21:40:41 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-10-17 23:37:01 +08:00
|
|
|
export default MyDocument;
|