-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-seo.config.ts
66 lines (61 loc) ยท 1.83 KB
/
next-seo.config.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { useRouter } from 'next/router'
const defaultTitle = {
ar: 'ู
ููุฏ ุงูุฑููุญู',
en: 'Mohanad Alrwaihy',
}
const defaultDesc = {
ar: 'ุฃูุง ู
ููุฏ ุงูุฑููุญู ุฎุฑูุฌ ููุฏุณุฉ ุฅููุชุฑูููุงุช ูู
ุทูุฑ ููุจ, ุงุญุงูู ู
ูุงูุจุฉ ุงูุชูููุฉ ูุฃุณุชุฎุฏู
ูู ุฃุนู
ุงูู : React, Next JS, TailwindCSS ูุงูุนุฏูุฏ ู
ู ุงูุฃุฏูุงุช ๐',
en: "I'm Mohanad Alrwaihy an Electronics Engineer graduate and Web Developer, I try to adapt to the newest technologies and I use these tools: React, Next JS, TailwindCSS and many more tools .๐",
}
export default function SEO() {
const router = useRouter()
const locale = router.locale
const headTitle = defaultTitle[locale] || defaultTitle.en
const headDesc = defaultDesc[locale] || defaultDesc.en
return {
titleTemplate: `${headTitle} | %s`,
defaultTitle: headTitle,
description: headDesc,
openGraph: {
url: `https://www.mohanad.in${locale === 'ar' ? '/ar' : ''}`,
type: 'website',
locale,
siteName: 'Mohanad Portfolio',
images: [
{
url: 'https://www.mohanad.in/images/MyPicture.png',
width: 600,
height: 600,
alt: 'Mohanad Alrwaihy Picture',
type: 'image/png',
},
],
},
twitter: {
handle: '@MohanadOO_',
site: '@MohanadOO_',
cardType: 'summary_large_image',
},
additionalLinkTags: [
{
rel: 'manifest',
href: '/site.webmanifest',
},
{
rel: 'apple-touch-icon',
href: '/favicon/apple-touch-icon.png',
sizes: '180x180',
},
{
rel: 'icon',
href: '/favicon/favicon-32x32.png',
sizes: '32x32',
},
{
rel: 'icon',
href: '/favicon/favicon-16x16.png',
sizes: '16x16',
},
],
}
}