-
Notifications
You must be signed in to change notification settings - Fork 1
/
seo.tsx
48 lines (44 loc) · 1.16 KB
/
seo.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import { DefaultSeo } from 'next-seo';
const baseUrl = process.env.NEXT_PUBLIC_APP_URL;
const GlobalSeo = () => {
const description =
'Easily create and organize your code snippets. Share them with others developers around the world.';
const title = 'Sharingan';
return (
<DefaultSeo
additionalMetaTags={[
{ content: 'Eric Cabrel TIOGO', property: 'author' },
{
content: 'code snippets, sharing code, open-source, coding utilities, snippet tools',
property: 'keywords',
},
]}
canonical={baseUrl}
description={description}
openGraph={{
description,
images: [
{
alt: 'Homepage image alt',
height: 720,
url: `${baseUrl}/assets/og.png`,
width: 1280,
},
],
locale: 'en-US',
site_name: title,
title,
type: 'website',
url: baseUrl,
}}
title={title}
titleTemplate="Sharingan - %s"
twitter={{
cardType: 'summary_large_image',
handle: '@sharinganapp',
site: '@sharinganapp',
}}
/>
);
};
export { GlobalSeo };