forked from ritz078/transform
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMeta.tsx
More file actions
26 lines (25 loc) · 987 Bytes
/
Meta.tsx
File metadata and controls
26 lines (25 loc) · 987 Bytes
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
import Head from "next/head";
import React from "react";
export const Meta = ({ title, description, url }) => {
return (
<Head>
<title>{title}</title>
<link rel="icon" href="/static/favicon.png" type="image/png" />
<meta content={description} name="description" />
<meta name="og:url" content={url} />
<meta name="og:title" content={title} />
<meta name="og:description" content={description} />
<meta name="og:image" content={"https://transform.tools/cover.png"} />
<meta name="og:type" content="website" />
<meta name="twitter:title" content={title} />
<meta name="twitter:description" content={description} />
<meta
name="twitter:image"
content={"https://transform.tools/cover.png"}
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="ritz078" />
<link rel="manifest" href="/static/site.webmanifest" />
</Head>
);
};