-
Notifications
You must be signed in to change notification settings - Fork 28k
/
Copy path_document.tsx
31 lines (29 loc) · 1.12 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
import { Html, Head, Main, NextScript } from "next/document";
export default function Document() {
const meta = {
title: "Next.js Blog Starter Kit",
description: "Clone and deploy your own Next.js portfolio in minutes.",
image: "https://assets.vercel.com/image/upload/q_auto/front/vercel/dps.png",
};
return (
<Html lang="en">
<Head>
<meta name="robots" content="follow, index" />
<meta name="description" content={meta.description} />
<meta property="og:site_name" content={meta.title} />
<meta property="og:description" content={meta.description} />
<meta property="og:title" content={meta.title} />
<meta property="og:image" content={meta.image} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@yourname" />
<meta name="twitter:title" content={meta.title} />
<meta name="twitter:description" content={meta.description} />
<meta name="twitter:image" content={meta.image} />
</Head>
<body>
<Main />
<NextScript />
</body>
</Html>
);
}