-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathseo.js
107 lines (102 loc) · 2.34 KB
/
seo.js
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { LIVE } from "constants/index.mjs";
const DEFAULT_SEO = {
openGraph: {
type: "website",
locale: "en_IE",
url: LIVE,
title: "Josh Levy - Fullstack Developer",
description:
"A fullstack developer with a passion for creating smooth, performant, and intuitive web applications.",
tags: [
"Portfolio",
"Fullstack",
"Developer",
"Software Engineer",
"Next.js",
"React"
],
site_name: "joshlevy.io",
images: [
{
url: `${LIVE}/assets/joshlevyio.png`,
width: 800,
height: 600,
alt: "joshlevy.io"
}
]
},
twitter: {
handle: "@handle",
site: "@site",
cardType: "summary_large_image"
},
additionalLinkTags: [
{
rel: "icon",
href: "/logo/favicon.ico"
},
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/logo/apple-touch-icon.png"
},
{
rel: "icon",
type: "image/png",
sizes: "32x32",
href: "/logo/favicon-32x32.png"
},
{
rel: "icon",
type: "image/png",
sizes: "16x16",
href: "/logo/favicon-16x16.png"
},
{
rel: "mask-icon",
href: "/logo/safari-pinned-tab.svg",
color: "#1C1D25"
}
],
additionalMetaTags: [
{
name: "theme-color",
media: "(prefers-color-scheme: dark)",
content: "#FFFFF5"
},
{
name: "theme-color",
media: "(prefers-color-scheme: light)",
content: "#1C1D25"
}
]
};
const IndexSEO = {
...DEFAULT_SEO,
title: "Josh Levy – Fullstack Developer",
description:
"A fullstack developer with a passion for creating smooth, performant, and intuitive web applications.",
canonical: LIVE
};
const BlogSEO = {
...DEFAULT_SEO,
title: "Blog – Josh Levy",
description:
"Thoughts on web development, the software industry, experiences in tech, and my personal life.",
canonical: `${LIVE}/blog`,
openGraph: {
...DEFAULT_SEO.openGraph,
url: `${LIVE}/blog`,
description:
"Thoughts on web development, the software industry, experiences in tech, and my personal life.",
tags: ["Blog", ...DEFAULT_SEO.openGraph.tags]
}
};
const ArticleSEO = {
...DEFAULT_SEO,
openGraph: {
...DEFAULT_SEO.openGraph,
tags: ["Blog", ...DEFAULT_SEO.openGraph.tags]
}
};
export { IndexSEO, BlogSEO, ArticleSEO };