-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path_document.js
42 lines (39 loc) · 1.73 KB
/
_document.js
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
import Document, { Head, Main, NextScript } from 'next/document';
export default class MyDocument extends Document {
render() {
return (
<html>
<Head>
<meta name="viewport" content="initial-scale=1.0, width=device-width" />
<meta name="description" content="Flutter cheat sheet" />
<meta
name="tags"
content="flutter, cheatsheet, props, hide status bar, didUpdateWidget, debounce, singleton"
/>
<link
rel="shortcut icon"
href="https://gitcdn.xyz/repo/flutter/flutter/master/dev/docs/favicon.ico"
/>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-130596321-1" />
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-130596321-1');
`,
}}
/>
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab" rel="stylesheet" />
<link href="https://unpkg.com/firacode@1.205.0/distr/fira_code.css" rel="stylesheet" />
</Head>
<body>
<Main />
<NextScript />
<script async defer src="https://buttons.github.io/buttons.js" />
</body>
</html>
);
}
}