jonbio/pages/_document.js

47 lines
1.7 KiB
JavaScript
Raw Normal View History

2021-01-09 17:50:45 +08:00
import Document, { Html, Head, Main, NextScript } from 'next/document'
class MyDocument extends Document {
render() {
return (
2021-12-27 16:46:49 +08:00
<Html lang="en" className="scroll-smooth">
2021-01-09 17:50:45 +08:00
<Head>
2021-01-10 14:31:38 +08:00
<link rel="apple-touch-icon" sizes="76x76" href="/static/favicons/apple-touch-icon.png" />
2021-01-09 17:50:45 +08:00
<link
rel="icon"
type="image/png"
2021-01-10 14:31:38 +08:00
sizes="32x32"
href="/static/favicons/favicon-32x32.png"
2021-01-09 17:50:45 +08:00
/>
<link
rel="icon"
type="image/png"
2021-01-10 14:31:38 +08:00
sizes="16x16"
href="/static/favicons/favicon-16x16.png"
/>
<link rel="manifest" href="/static/favicons/site.webmanifest" />
<link rel="mask-icon" href="/static/favicons/safari-pinned-tab.svg" color="#5bbad5" />
<meta name="msapplication-TileColor" content="#000000" />
<meta name="theme-color" content="#000000" />
2021-07-11 23:35:19 +08:00
<link rel="alternate" type="application/rss+xml" href="/feed.xml" />
2021-01-10 16:55:24 +08:00
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
2021-01-10 14:31:38 +08:00
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
2021-05-29 17:23:34 +08:00
href="https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css"
integrity="sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc"
2021-01-10 16:55:24 +08:00
crossOrigin="anonymous"
2021-01-09 17:50:45 +08:00
/>
</Head>
2021-01-12 23:35:36 +08:00
<body className="antialiased text-black bg-white dark:bg-gray-900 dark:text-white">
2021-01-10 14:39:42 +08:00
<Main />
<NextScript />
2021-01-09 17:50:45 +08:00
</body>
</Html>
)
}
}
export default MyDocument