-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMetaData.jsx
More file actions
29 lines (24 loc) · 1.02 KB
/
Copy pathMetaData.jsx
File metadata and controls
29 lines (24 loc) · 1.02 KB
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
import { Helmet } from 'react-helmet-async';
function MetaData({ title, summary, cover }) {
return (
<Helmet>
{/* <!-- Primary Meta Tags --> */}
<title>{title}</title>
<meta name="title" content={title} />
<meta name="description" content={summary} />
{/* <!-- Open Graph / Facebook --> */}
<meta property="og:type" content="website" />
<meta property="og:url" content="https://blog-frontend-git-dev-mido-kun.vercel.app/" />
<meta property="og:title" content={title} />
<meta property="og:description" content={summary} />
<meta property="og:image" content={cover} />
{/* <!-- Twitter --> */}
<meta property="twitter:card" content={cover} />
<meta property="twitter:url" content="https://blog-frontend-git-dev-mido-kun.vercel.app" />
<meta property="twitter:title" content={title} />
<meta property="twitter:description" content={summary} />
<meta property="twitter:image" content={summary} />
</Helmet>
)
}
export default MetaData;