-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMetatags.tsx
22 lines (20 loc) · 868 Bytes
/
Metatags.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Head from 'next/head';
export default function Metatags({
title = 'The Full Next.js + Firebase Course',
description = 'A complete Next.js + Firebase course by Fireship.io',
image = 'https://fireship.io/courses/react-next-firebase/img/featured.png',
}): JSX.Element {
return (
<Head>
<title>{title}</title>
<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@fireship_dev" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta name="twitter:image" content={image} />
<meta property="og:title" content={title} />
<meta property="og:description" content={description} />
<meta property="og:image" content={image} />
</Head>
);
}