-
Notifications
You must be signed in to change notification settings - Fork 1
/
_document.tsx
58 lines (51 loc) · 2.55 KB
/
_document.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import { Html, Head, Main, NextScript } from 'next/document'
// reference: https://nextjs.org/docs/advanced-features/custom-document#typescript
// import Document, { DocumentContext, Html, Head, Main, NextScript } from "next/document";
// class MyDocument extends Document {
// static async getInitialProps(ctx: DocumentContext) {
// const initialProps = await Document.getInitialProps(ctx);
//
// return initialProps;
// }
// }
const MyDocument = ()=>{
return (
<Html>
<Head>
<meta charSet="utf-8" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icons-192.png" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#3f51b5" />
<meta name="Description" content="Contains the previous works and community contacts" />
{/* Reference: https://stackoverflow.com/a/52079972 */}
<meta name="ui-version" content={process.env.NEXT_PUBLIC_GIT_SHA} />
{/*
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/web-app-manifest/
*/}
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
{/*
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
*/}
{/* Moved to JS side to avoid blocking rendering */}
{/* <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">*/}
{/* <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons" />*/}
<title>Hey's Personal Portfolio</title>
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
export default MyDocument;